system_idle 0.2.1 copy "system_idle: ^0.2.1" to clipboard
system_idle: ^0.2.1 copied to clipboard

PlatformmacOS
outdated

A flutter package that detects if system is in idle state

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);

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),
);
4
likes
150
points
338
downloads

Publisher

verified publisherdevtalents.com

Weekly Downloads

A flutter package that detects if system is in idle state

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

ffi, flutter, path, watcher, win32

More

Packages that depend on system_idle

Packages that implement system_idle