{{DomRef}}
Summary
The UserProximityEvent
indicates whether a nearby physical object is present by using the proximity sensor of a device.
Properties
- {{domxref("UserProximityEvent.near")}}
- Indicates if the device has sensed a nearby physical object.
Specifications
Specification | Status | Comment |
---|---|---|
{{ SpecName('Proximity Events', '', 'Proximity Events') }} | {{ Spec2('Proximity Events') }} | Initial specification |
Browser compatibility
{{ CompatibilityTable() }}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | {{ CompatNo() }} | {{ CompatVersionUnknown() }} | {{ CompatNo() }} | {{ CompatNo() }} | {{ CompatNo() }} |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{ CompatNo() }} | {{ CompatNo() }} | {{ CompatGeckoMobile("15.0") }} | {{ CompatNo() }} | {{ CompatNo() }} | {{ CompatNo() }} |
See also
- {{event("userproximity")}}
- {{domxref("DeviceProximityEvent")}}
- Proximity API