system_idle_another

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

system idle another

System idle #
A simple package for checking if computer was idle for given amount of time. #




Platform
Status




Windows
✅ Working


Linux
✅ Working


macOS
✅ Working







How to use it #
Initialize with desired time, after which computer is considered idle. #
await SystemIdle.instance.initialize(time: 10);
copied to clipboard
In given example idle time is set to 10 seconds. If no mouse/keyboard input were detected after this time idle state will be emited.

Listening to idle state changes #
SystemIdle.instance.onIdleStateChanged.listen(
(isIdle) => setState(() => _isIdle = isIdle),
);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.