WebIDLpedia

ProximitySensor interface

Definition

Proximity Sensor defines ProximitySensor

[SecureContext, Exposed=Window]
interface ProximitySensor : Sensor {
  constructor(optional SensorOptions sensorOptions = {});
  readonly attribute double? distance;
  readonly attribute double? max;
  readonly attribute boolean? near;
};

Methods and attributes that return objects implementing ProximitySensor