GitHub 저장소srnunio/activsy

activsy

응용 프로그램에서 사용자 활동이 없을 때 반응합니다

activsy 프로젝트 이미지
스타
7
포크
0
최근 푸시(UTC)
2026. 4. 27.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

activsy

reacts when there are no user activities in your application

Installation

dependencies:
  activsy: ^1.0.3

Usage

void main() {
  Activsy.initialize(waiTime: 10, onTimeOut: () {
    /// perform operation
    /// call the start to continue monitoring 
  }); 
  runApp(const MyApp());
}
ActivsyWidget(
    detectedMouseAction: false,
    builder: (context) {
        return MaterialApp(
             title: 'Flutter Demo',
             theme: ThemeData(primarySwatch: Colors.blue,),
             home: const MyHomePage(title: 'Flutter Demo Home Page'),
        );
    },
)

can also intercept interaction events, just implement the onEvent(PointerEvent) method

ActivsyWidget(
    onEvent: (_){},
    builder: (context) {...},
)

After the onTimeOut method call the monitoring is terminated

Functions And Attributes Description
start To monitor user interaction with the application just call Activsy.start(). Can be called multiple times but if monitoring is already active nothing happens
stop Ends monitoring Activsy.reset(). Can be called multiple times
reset Restart monitoring Activsy.reset(), he calls start() and then stop(). This method also to modify the waiting time: Activsy.updateTime(waiTime: 60)
forceTimeOut Triggers the onTimeOut method at any point in the application Activsy.forceTimeOut(). There are several reasons to trigger the noActivity method before the stipulated timer
isInitialized true returns if the setup was made
isActive true returns if monitoring this active

Note: call the functions after the config method otherwise you will throw an exception

Support

You liked this package? then give it a star. If you want to help then:

  • Start this repository
  • Send a Pull Request with new features
  • Share this package
  • Create issues if you find a Bug or want to suggest something
Edvaldo Martins GitHub avatar
GitHub 작성자

Edvaldo Martins ↗

Software developer. I build high quality Android, iOS and Web apps with @flutter

언어DartSwiftKotlinObjective-C

분류

사용 중인 의존성

의존성 목록 3 개

  • flutter{"sdk":"flutter"}
  • flutter_test개발 의존성{"sdk":"flutter"}
  • flutter_lints개발 의존성^1.0.0

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗