userproximity

  • Revision slug: Web/Reference/Events/userproximity
  • Revision title: userproximity
  • Revision id: 402635
  • Created:
  • Creator: Sheppy
  • Is current revision? Yes
  • Comment Moved From DOM/Mozilla_event_reference/userproximity to Web/Reference/Events/userproximity

Revision Content

The userproximity event is fired when fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not).

General info

Specification
{{specName('Proximity Events','#event-handlers-1')}}
Interface
{{domxref("UserProximityEvent")}}
Bubbles
No
Cancelable
No
Target
DefaultView (window)
Default Action
None

Properties

{{OpenEventProperties()}}{{DeviceProximityEventProperties()}}{{CloseEventProperties()}}

  • {{event("deviceproximity")}}

See Also

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

Revision Source

<p>The <code>userproximity</code> event is fired when fresh data is available from a proximity sensor (indicates whether the nearby object is near the device or not).</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;">
    {{specName('Proximity Events','#event-handlers-1')}}</dd>
  <dt style="clear: left; float: left; text-align: right; width: 120px;">
    Interface</dt>
  <dd style="margin: 0 0 0 120px;">
    {{domxref("UserProximityEvent")}}</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>{{OpenEventProperties()}}{{DeviceProximityEventProperties()}}{{CloseEventProperties()}}</p>
<h2 id="Related_Events">Related Events</h2>
<ul>
  <li>{{event("deviceproximity")}}</li>
</ul>
<h2 id="See_Also">See Also</h2>
<ul>
  <li>{{domxref("UserProximityEvent")}} Object definition</li>
</ul>
Revert to this revision