ChromeIdle class

Properties

hashCode int
The hash code for this object.
no setterinherited
isAvailable bool
no setter
onStateChanged EventStream<IdleState>
Fired when the system changes to an active, idle or locked state. The event fires with "locked" if the screen is locked or the screensaver activates, "idle" if the system is unlocked and the user has not generated any input for a specified number of seconds, and "active" when the user generates input on an idle system.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAutoLockDelay() Future<int>
Gets the time, in seconds, it takes until the screen is locked automatically while idle. Returns a zero duration if the screen is never locked automatically. Currently supported on Chrome OS only.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryState(int detectionIntervalInSeconds) Future<IdleState>
Returns "locked" if the system is locked, "idle" if the user has not generated any input for a specified number of seconds, or "active" otherwise. detectionIntervalInSeconds The system is considered idle if detectionIntervalInSeconds seconds have elapsed since the last user input detected.
setDetectionInterval(int intervalInSeconds) → void
Sets the interval, in seconds, used to determine when the system is in an idle state for onStateChanged events. The default interval is 60 seconds. intervalInSeconds Threshold, in seconds, used to determine when the system is in an idle state.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited