Function to call a function after the user has been idle for a specified amount of time. Once set, the timeout will remain dormant until the user has been continuously idle for the delay specified. Returns Function. Calling Function cancels idle timeout.
Argument | Type | Description |
---|---|---|
element | String|Element | Element to watch for user events. Can be SceneController.sceneElement or a specific element. ID or Element itself is accepted. |
func | Function | The function called after the delay has been reached. |
delay | int | Delay in milliseconds after the last user event is detected on element before calling func. |
watchMouse | Boolean | True to watch for screen touches and taps. Default is True. |
watchKeys | Boolean | True to monitor keyboard input. Default is True. |
0 Comments