package js.html
extends Event
Available on js
The DeviceOrientationEvent
provides web developers with information from the physical orientation of the device running the web page.
Documentation DeviceOrientationEvent by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
new(type:String, ?eventInitDict:Null<DeviceOrientationEventInit>)
Throws:
null |
DOMError |
---|
read onlyabsolute:Bool
A boolean that indicates whether or not the device is providing orientation data absolutely.
read onlyalpha:Float
A number representing the motion of the device around the z axis, express in degrees with values ranging from 0 to 360.
read onlybeta:Float
A number representing the motion of the device around the x axis, express in degrees with values ranging from -180 to 180. This represents a front to back motion of the device.
read onlygamma:Float
A number representing the motion of the device around the y axis, express in degrees with values ranging from -90 to 90. This represents a left to right motion of the device.
initDeviceOrientationEvent(type:String, canBubble:Bool = false, cancelable:Bool = false, ?alpha:Float, ?beta:Float, ?gamma:Float, absolute:Bool = false):Void
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/DeviceOrientationEvent.html