Overview
The Proximity API (specifically DeviceProximityEvent and UserProximityEvent) allows web apps to detect when an object (like a user's face) is close to the device. This is most commonly found on smartphones.
Use Cases
- Screen Management: Turning off the screen during a web-based VoIP call when the phone is held to the ear.
- Interactive Art: Triggering events when a user waves their hand near the device.
Status
This API is currently experimental and has limited browser support. It is part of a broader set of 'Generic Sensor' APIs being developed for the web.