Window.onuserproxymityproperty represents an
EventHandler, that is a function to be called when the
userproximityevent occurs. These events are of type
UserProximityEventand occur when the the device sensor detects that an object becomes nearby.
deviceproximityevents. These events occur when the device sensor detects that an object becomes closer to or farther from the device.