qnx.events.GyroscopeEvent

GyroscopeEvent

Properties | Methods | Constants


Packageqnx.events
Classpublic class GyroscopeEvent
InheritanceGyroscopeEvent Inheritance flash.events.Event

The Gyroscrope class dispatches GyroscopeEvent when the gyroscope updates are received from the gyroscope sensor on the device.

Class information:
PlayBook Tablet OS Version: 2.1
Found in:  QNXSensors.ane

See also

qnx.sensors.Gyroscope



Public Properties

 PropertyDefined By
  accuracy : int
The current accuracy of the sensor at the time of the event.
GyroscopeEvent
  timestamp : Number
The timestamp of the event.
GyroscopeEvent
  x : Number
The gyroscope value, in radians per second, along the x-axis.
GyroscopeEvent
  y : Number
The gyroscope value, in radians per second, along the y-axis.
GyroscopeEvent
  z : Number
The gyroscope value, in radians per second, along the z-axis.
GyroscopeEvent

Public Methods

 MethodDefined By
  
GyroscopeEvent(type:String, x:Number, y:Number, z:Number, accuracy:int, timestamp:Number)
Creates an GyroscopeEvent object that contains information about the gyroscope along a three dimensional axis.
GyroscopeEvent

Public Constants

 ConstantDefined By
  UPDATE : String = gyroscopeUpdate
[static] Defines the value of the type property of a AccelerometerEvent event object.
GyroscopeEvent

Property Detail

accuracy


public var accuracy:int

The current accuracy of the sensor at the time of the event. See the SensorAccuracy class for a list of valid values.

See also

SensorAccuracy

timestamp


public var timestamp:Number

The timestamp of the event.

x


public var x:Number

The gyroscope value, in radians per second, along the x-axis.

y


public var y:Number

The gyroscope value, in radians per second, along the y-axis.

z


public var z:Number

The gyroscope value, in radians per second, along the z-axis.

Constructor Detail

GyroscopeEvent()


public function GyroscopeEvent(type:String, x:Number, y:Number, z:Number, accuracy:int, timestamp:Number)

Creates an GyroscopeEvent object that contains information about the gyroscope along a three dimensional axis.

Parameters

type:String — The type of the event. There is only one type of update event: GyroscopeEvent.UPDATE
x:Number — The gyroscope value, in radians per second, along the x-axis.
y:Number — The gyroscope value, in radians per second, along the y-axis.
z:Number — The gyroscope value, in radians per second, along the z-axis.
accuracy:int — The current accuracy of the sensor at the time of the event. See the SensorAccuracy class for a list of valid values.
timestamp:Number — The timestamp of the event.

Constant Detail

UPDATE


public static const UPDATE:String = gyroscopeUpdate

Defines the value of the type property of a AccelerometerEvent event object.