activsy
जब आपके एप्लिकेशन में कोई उपयोगकर्ता गतिविधि नहीं होती है, तो प्रतिक्रिया करता है
- स्टार
- 7
- फ़ोर्क
- 0
- अंतिम पुश (UTC)
- 27 अप्रैल 2026
- प्रोजेक्ट स्थिति
- सक्रिय
मूल 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
भाषाएँDartSwiftKotlinObjective-C
श्रेणियाँ
उपयोग की गई निर्भरताएँ
निर्भरता सूची 3 आइटम
- flutter
{"sdk":"flutter"} - flutter_testडेवलपमेंट
{"sdk":"flutter"} - flutter_lintsडेवलपमेंट
^1.0.0
अपने प्रोजेक्ट के लिए रिपॉज़िटरी कैसे चुनें?
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
- नाम, लेखक या विवरण से खोजें और तकनीकी विषय से परिणाम सीमित करें।
- स्टार, फ़ोर्क और हाल के पुश की तुलना करें। स्टार रुचि दर्शाते हैं, गुणवत्ता की गारंटी नहीं।
- उपयोग से पहले GitHub पर README, लाइसेंस और Issues जाँचें।
स्रोत और रखरखाव
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- srnunio/activsy · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- डायरेक्टरी का रखरखाव Ducafecat ↗