76
edits
| Line 52: | Line 52: | ||
* Idle observer requested idle times are in seconds. | * Idle observer requested idle times are in seconds. | ||
* Randomly generated fuzz times for 'idle' and 'active' events are in seconds. | * Randomly generated fuzz times for 'idle' and 'active' events are in milli-seconds. | ||
* Idle Notifications: | * Idle Notifications: | ||
| Line 92: | Line 92: | ||
| ''In:'' | | ''In:'' | ||
| addIdleObserver() | | addIdleObserver() | ||
| | | Requested idle time in seconds. Idle callback function. Active callback function. | ||
| | | The requested idle time in seconds is the amount of idle time that needs to elapse before the idle observer receives 'idle'/ 'active' notifications. The notifications are the idle and active callback functions. The mininum requested idle time in seconds must be 1 second. | ||
|- | |- | ||
| ''In:'' | | ''In:'' | ||
| removeIdleObserver() | | removeIdleObserver() | ||
| | | Requested idle time in seconds. Idle callback function. Active callback function. | ||
| | | The requested idle time in seconds is the amount of idle time that needs to elapse before the idle observer receives 'idle'/ 'active' notifications. The notifications are the idle and active callback functions. The mininum requested idle time in seconds must be 1 second. | ||
|- | |- | ||
| ''Out:'' | | ''Out:'' | ||
| Idle callback function. Active callback function. | | Idle callback function. Active callback function. | ||
| | | None | ||
| The idle callback function is called when the user transitions to the idle state and the requested amount of idle time, converted to milli-seconds, plus a random fuzz time (milli-seconds) have elapsed. | |||
|} | |} | ||
edits