1. Web
  2. Web APIs
  3. DeviceMotionEvent
  4. interval

DeviceMotionEvent: interval property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2023.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

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

Specification
Device Orientation and Motion
# dom-devicemotionevent-interval

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /