DeviceMotionEvent.interval

  • Revision slug: DOM/DeviceMotionEvent.interval
  • Revision title: DeviceMotionEvent.interval
  • Revision id: 70554
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment new page for bug 662678; page created, 46 words added

Revision Content

{{ DomRef() }}

Summary

Returns the interval, in milliseconds, at which device motion events fire. You can use this to determine the granularity of motion events. Read only.

Syntax

var interval = motionEvent.interval;

Example

Specification

See also

Revision Source

<p>{{ DomRef() }}</p>
<h3 name="Summary">Summary</h3>
<p>Returns the interval, in milliseconds, at which device motion events fire. You can use this to determine the granularity of motion events. <strong>Read only.</strong></p>
<h3 name="Syntax">Syntax</h3>
<pre class="eval"><em>var interval</em> = <em>motionEvent</em>.interval;
</pre>
<h3 name="Example">Example</h3>
<h3 name="Specification">Specification</h3>
<ul> <li><a class="external" href="http://www.w3.org/TR/orientation-event/" title="http://www.w3.org/TR/orientation-event/">DeviceOrientation Event Specification</a></li>
</ul>
<h3>See also</h3>
<ul> <li>{{ domxref("DeviceMotionEvent") }}</li> <li><a href="/en/Detecting_device_orientation" title="Detecting device orientation">Detecting device orientation</a></li> <li>{{ domxref("window.ondevicemotion") }}</li>
</ul>
Revert to this revision