The UserProximityEvent
provides information if a nearby physical object is present by using the proximity sensor of a device.
Attributes
-
near
-
Boolean. Indicates if the device has sensed a nearby physical object.
Browser compatibility
{{ CompatibilityTable() }}
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari |
Basic support |
{{ CompatNo() }} |
{{ CompatNo() }} |
{{ 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() }} |
Specifications
Specification |
Status |
Comment |
{{ SpecName('ProximityEvents', '', 'Proximity Events') }} |
{{ Spec2('Proximity Events') }} |
Initial specification |
See also
- {{domxref("DeviceProximityEvent")}}