This interface provides information about device motion.
Last changed in Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3)
Note: This interface was named
nsIDeviceMotionData prior to Gecko 6.0 (Firefox 6.0 / Thunderbird 6.0 / SeaMonkey 2.3).
|The type of motion data reported by this object; see Motion type constants for possible values. Read only. |
|The amount of tilt along the X axis. Read only. |
|The amount of tilt along the Y axis. Read only. |
|The amount of tilt along the Z axis. Read only. |
The values of
z can range from -1 to 1, where 0 means the device is balanced on that axis. See Accelerometer values explained for details.
Motion type constants
|The motion data describes device acceleration. |
|The motion data describes a device orientation chang. |
Document Tags and Contributors
Last updated by: