DeviceOrientationEvent

extern class js.html.DeviceOrientationEventextends EventAvailable in jsA DeviceOrientationEvent object describes an event that provides information about the current orientation of the device as compared to the Earth coordinate frame. See Orientation and motion data explained for details.

Documentation for this class was provided by MDN.
var absolute(default,null) : BoolThis attribute's value is true if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is false. Read only. var alpha(default,null) : FloatThe current orientation of the device around the Z axis; that is, how far the device is rotated around a line perpendicular to the device. Read only. var beta(default,null) : FloatThe current orientation of the device around the X axis; that is, how far the device is tipped forward or backward. Read only. var gamma(default,null) : Float
The current orientation of the device around the Y axis; that is, how far the device is turned left or right. Read only.
Note: If the browser is not able to provide notification information, all values are 0.
function initDeviceOrientationEvent( type : String, bubbles : Bool, cancelable : Bool, alpha : Float, beta : Float, gamma : Float, absolute : Bool ) : Void
version #18254, modified 2013-05-01 11:57:09 by api
0 comment