Packageorg.juicekit.events
Classpublic class InactivityMonitor
InheritanceInactivityMonitor Inheritance flash.events.EventDispatcher

The InactivityMonitor class monitors other event dispatchers for keyboard or mouse events in order to signal periods of inactivity to listeners of jkInactivityPeriod.

See also

InactivityEvent


Public Properties
 PropertyDefined by
  maxIdle : Number
InactivityMonitor
  monitor : IEventDispatcher
References an IEventDispatcher to be watched for periods of inactivity.
InactivityMonitor
Public Methods
 MethodDefined by
  
InactivityMonitor(monitored:IEventDispatcher = null, maxIdle:Number = 5000)
Constructor.
InactivityMonitor
  
restart():void
Restarts the idle-period counter from zero.
InactivityMonitor
Events
 EventSummaryDefined by
   Dispatched when the idle period has expired with no activity.InactivityMonitor
Property detail
maxIdleproperty
maxIdle:Number  [read-write]Implementation
    public function get maxIdle():Number
    public function set maxIdle(value:Number):void
monitorproperty 
monitor:IEventDispatcher  [read-write]

References an IEventDispatcher to be watched for periods of inactivity.

Implementation
    public function get monitor():IEventDispatcher
    public function set monitor(value:IEventDispatcher):void
Constructor detail
InactivityMonitor()constructor
public function InactivityMonitor(monitored:IEventDispatcher = null, maxIdle:Number = 5000)

Constructor.

Parameters
monitored:IEventDispatcher (default = null) — References an IEventDispatcher to be watched for periods of inactivity.
 
maxIdle:Number (default = 5000) — Specifies the minimum number of milliseconds between watched events before an InactivityEvent is dispatched.
Method detail
restart()method
public function restart():void

Restarts the idle-period counter from zero.

Event detail
jkInactivityPeriodevent 
Event object type: org.juicekit.events.InactivityEvent

Dispatched when the idle period has expired with no activity.