DeviceOrientationEvent.absolute

  • Revision slug: DOM/DeviceOrientationEvent.absolute
  • Revision title: DeviceOrientationEvent.absolute
  • Revision id: 70517
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment page created, 111 words added

Revision Content

{{ DomRef() }}

Summary

Indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device. See Orientation and motion data explained for details.

Syntax

var absolute = orientationEvent.absolute;

On return, absolute is true if the orientation data in orientationEvent is provided as the difference between the Earth's coordinate frame and the device's coordinate frame, or false if the orientation data is being provided in reference to some arbitrary, device-determined coordinate frame.

Example

Specification

See also

Revision Source

<p>{{ DomRef() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Indicates whether or not the device is providing orientation data absolutely (that is, in reference to the Earth's coordinate frame) or using some arbitrary frame determined by the device. See <a href="/en/DOM/Orientation_and_motion_data_explained" title="Orientation and motion data explained">Orientation and motion data explained</a> for details.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre class="eval"><em>var absolute</em> = <em>orientationEvent</em>.absolute;
</pre>
<p>On return, <em><code>absolute</code></em> is <code>true</code> if the orientation data in <em><code>orientationEvent</code></em> is provided as the difference between the Earth's coordinate frame and the device's coordinate frame, or <code>false</code> if the orientation data is being provided in reference to some arbitrary, device-determined coordinate frame.</p>
<h3 id="Example" name="Example">Example</h3>
<h3 id="Specification" 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 id="See_also">See also</h3>
<ul> <li>{{ domxref("DeviceOrientationEvent") }}</li> <li><a href="/en/Detecting_device_orientation" title="Detecting device orientation">Detecting device orientation</a></li> <li><a href="/en/DOM/Orientation_and_motion_data_explained" title="Orientation and motion data explained">Orientation and motion data explained</a></li> <li>{{ domxref("window.ondeviceorientation") }}</li>
</ul>
Revert to this revision