public function IdleTimer(config:Configuration, debug:DebugConfiguration, display:DisplayObject, buffer:Buffer)
Create an instance of the IdleTimer
note:
the timer will loop every seconds
on each loop
we compare the to the
and if the result is equal or bigger than the
seconds we start a sessionTimer
-> if the mouse move again we reset the sessionTimer
-> if the mouse does not move till we reach the end of the sessionTimeout
we reset the session
Parameters
| config:Configuration — number of seconds to check for idle
|
| |
| debug:DebugConfiguration — number of seconds to check for inactivity
|
| |
| display:DisplayObject — number of seconds to end the session
|
| |
| buffer:Buffer |