chrome.idle
The time since the last input in Wren's windows (src/page/ext_idle.odin). "locked" is never reported.
Gate: permission idle; contexts: Background, Popup, Tab. Source: api/ext_idle.widl.
Methods and properties
| Member | Result | Status | Gate | |
|---|---|---|---|---|
queryState(i64 detectionIntervalInSeconds) | IdleState | host | "idle" when no input came for detectionIntervalInSeconds. | |
setDetectionInterval(i64 intervalInSeconds) | void | host | For onStateChanged: at least 15 seconds, at most 4 hours (a smaller or larger value is clamped). |
setDetectionInterval:
intervalInSeconds: i64 (at least 0)
Events
| Event | Listener's parameters | Gate | |
|---|---|---|---|
onStateChanged | IdleState newState |
Types
IdleState
A string: "active", "idle", "locked". chrome.idle.IdleState names them.