deviceproximity

  • Revision slug: Mozilla_event_reference/deviceproximity
  • Revision title: deviceproximity
  • Revision id: 356307
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

The deviceproximity event is fired when fresh data is available from a proximity sensor.

General info

Specification
Device Proximity
Interface
DeviceProximityEvent
Bubbles
No
Cancelable
No
Target
DefaultView (window)
Default Action
None

Properties

{{SensorCallbackProperties("proximity in centimeters (cm)")}}

See also

  • {{domxref("DeviceProximityEvent")}} Object definition

Revision Source

<p>The <code>deviceproximity</code> event is fired when fresh data is available from a proximity sensor.</p>
<h2 id="General_info">General info</h2>
<dl>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Specification</dt>
  <dd style="margin: 0 0 0 120px;">
    <a class="external" href="https://dvcs.w3.org/hg/dap/raw-file/tip/proximity/Overview.html#device-proximity">Device Proximity</a></dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    DeviceProximityEvent</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Bubbles</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Cancelable</dt>
  <dd style="margin: 0 0 0 120px;">
    No</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Target</dt>
  <dd style="margin: 0 0 0 120px;">
    DefaultView (<code>window</code>)</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Default Action</dt>
  <dd style="margin: 0 0 0 120px;">
    None</dd>
</dl>
<h2 id="Properties">Properties</h2>
<p>{{SensorCallbackProperties("proximity in centimeters (cm)")}}</p>
<h2 id="Related_Events">Related Events</h2>
<ul>
  <li><a href="/en-US/docs/Mozilla_event_reference/userproximity"><code>userproximity</code></a></li>
</ul>
<h2>See also</h2>
<ul>
  <li>{{domxref("DeviceProximityEvent")}} Object definition</li>
</ul>
Revert to this revision