Instance Property

ondevicemotion

The event listener that is called when the device motion changes.

Declaration

attribute EventHandler ondevicemotion;

Discussion

Read DeviceMotionEvent for details.

See Also

Getting Orientation and Motion Events

orientation

Specifies the orientation of the device.

ondeviceorientation

The event listener that is called while the device orientation changes around the x, y, and z axes.