IdleTimer
Definition
IdleTimer is a component for detecting idle Time of the user for given miliseconds in idleTime property.
IdleTimer has 2 methods to call, start and clearTimer.
- IdleTimer.start() method creates a timer Instance.
- IdleTimer.clearTimer() method clears the timer Instance.
Props
Attribute | Description | Type | Default |
---|---|---|---|
detectMouseMove | DetectMouseMove: detect as activity any mouse movements | boolean | false |
detectKeyPress | Detect as activity any keypress | boolean | false |
idleTime | IdleTime of the user in miliseconds | number | undefined |
visible | Visibility of IdleTimer component | boolean | true |
Events
Attribute | Description | |
---|---|---|
TimeOut | Event triggered on user's idle Time for specified milliseconds in the idleTime property. |
Example usage of component:
IdleTimer