Packagecom.myflashlab.air.extensions.sensors
Classpublic class Sensors
InheritanceSensors Inheritance Object



Public Properties
 PropertyDefined By
  listener : TheListener
[static] [read-only]
Sensors
Public Methods
 MethodDefined By
  
init():void
[static]
Sensors
  
setSensorDelay($delay:int):void
[static] Indicates the sensor delay in Android.
Sensors
Public Constants
 ConstantDefined By
  EXTENSION_ID : String = com.myflashlab.air.extensions.sensors
[static]
Sensors
  SENSOR_DELAY_FASTEST : int = 0
[static]
Sensors
  SENSOR_DELAY_GAME : int = 1
[static]
Sensors
  SENSOR_DELAY_NORMAL : int = 3
[static]
Sensors
  SENSOR_DELAY_UI : int = 2
[static]
Sensors
  VERSION : String = 0.0.11
[static]
Sensors
Property Detail
listenerproperty
listener:TheListener  [read-only]


Implementation
    public static function get listener():TheListener
Method Detail
init()method
public static function init():void

setSensorDelay()method 
public static function setSensorDelay($delay:int):void

Indicates the sensor delay in Android. On iOS you can't control the sensor delay. Notice that changing the sensor delay will only effect the new listeners. Meaning that if you are already listening to a sensor, changing the sensorDelay won't effect that. You should remove that sensor listener and add it again.

Parameters

$delay:int

Constant Detail
EXTENSION_IDConstant
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.sensors

SENSOR_DELAY_FASTESTConstant 
public static const SENSOR_DELAY_FASTEST:int = 0

SENSOR_DELAY_GAMEConstant 
public static const SENSOR_DELAY_GAME:int = 1

SENSOR_DELAY_NORMALConstant 
public static const SENSOR_DELAY_NORMAL:int = 3

SENSOR_DELAY_UIConstant 
public static const SENSOR_DELAY_UI:int = 2

VERSIONConstant 
public static const VERSION:String = 0.0.11