Packagecom.google.analytics.core
Classpublic class IdleTimer

The Idle Timer class.



Public Methods
 MethodDefined by
  
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
IdleTimer
  
checkForIdle(event:TimerEvent):void
IdleTimer
  
endSession(event:TimerEvent):void
IdleTimer
Constructor detail
IdleTimer()constructor
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
Method detail
checkForIdle()method
public function checkForIdle(event:TimerEvent):voidParameters
event:TimerEvent
endSession()method 
public function endSession(event:TimerEvent):voidParameters
event:TimerEvent