Wren

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

MemberResultStatusGate
queryState(i64 detectionIntervalInSeconds)IdleStatehost"idle" when no input came for detectionIntervalInSeconds.
setDetectionInterval(i64 intervalInSeconds)voidhostFor onStateChanged: at least 15 seconds, at most 4 hours (a smaller or larger value is clamped).

setDetectionInterval:

  • intervalInSeconds: i64 (at least 0)

Events

EventListener's parametersGate
onStateChangedIdleState newState

Types

IdleState

A string: "active", "idle", "locked". chrome.idle.IdleState names them.

Edit this page on GitHub