MDN self-hosted library · e01.org

DeviceMotionEvent: interval property

Device Orientation Events

no runnable cells web-api-instance-property upstream source

Device Orientation Events

The interval read-only property of the DeviceMotionEvent interface returns the interval, in milliseconds, at which data is obtained from the underlying hardware. You can use this to determine the granularity of motion events.

Value

A number representing the interval of time, in milliseconds.

Specifications

Browser compatibility

See also

  • Detecting device orientation
  • Orientation and motion data explained
  • devicemotion event