GitHub リポジトリsrnunio/activsy

activsy

アプリケーション内でユーザーのアクティビティが存在しない場合に反応します

activsy のプロジェクト画像
スター
7
フォーク
0
最終プッシュ(UTC)
2026/04/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

Luanda/Angola公式サイト ↗
言語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 ↗