DeviceMotionEvent object
Provides information about the motion of the host device, including acceleration and rate of rotation.
![]() |
DOM Information
Inheritance Hierarchy
Members
The DeviceMotionEvent object has these types of members:
Methods
The DeviceMotionEvent object has these methods.
| Method | Description |
|---|---|
| initDeviceMotionEvent |
Used to create a DeviceMotionEvent event from JavaScript. |
Properties
The DeviceMotionEvent object has these properties.
| Property | Access type | Description |
|---|---|---|
|
Read-only |
Returns a DeviceAcceleration object representing the acceleration (in m/s²) of the host device in motion along the X, Y, and Z axes. | |
|
Read-only |
Returns a DeviceAcceleration object representing the acceleration (in m/s²), including the effect of gravity, of the host device in motion along the X, Y, and Z axes. | |
|
Read-only |
Represents the interval (in milliseconds) at which motion data is being obtained from the underlying hardware of the host device. | |
|
Read-only |
Returns a DeviceRotationRate object representing the rotation of the hosting device in space. |
Standards information
See also
