DeviceOrientationEvent Interface
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.
Extends
Methods
Code void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute) #
void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute);
Fields
Code final bool absolute #
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.
final bool absolute;
Code final num alpha #
final num alpha;
Code final num beta #
final num beta;
Code final num gamma #
- The current orientation of the device around the Y axis; that is, how far the device is turned left or right. Read only.
final num gamma;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.