Proximity Events Specification: How To Receive Events From Device Proximity Sensorsby@mozilla

Proximity Events Specification: How To Receive Events From Device Proximity Sensors

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Proximity events are a handy way to know when a user is close to a device. These events make it possible to react to such a change, for example by shutting down the screen of a smartphone when the user is having a phone call with the device close to their ear. The API requires the device to have a proximity sensor, which are mostly available only on mobile devices. This is an experimental technology. Check the Browser compatibility table carefully before using this in production before using it in production.

Company Mentioned

Mention Thumbnail
featured image - Proximity Events Specification: How To Receive Events From Device Proximity Sensors
Mozilla Contributors HackerNoon profile picture

@mozilla

Mozilla Contributors

Mozilla (stylized as moz://a) is a free software community founded in 1998 by members of Netscape.


Receive Stories from @mozilla

react to story with heart
Mozilla Contributors HackerNoon profile picture
by Mozilla Contributors @mozilla.Mozilla (stylized as moz://a) is a free software community founded in 1998 by members of Netscape.
Read My Stories

RELATED STORIES

L O A D I N G
. . . comments & more!