WebIDLpedia

AmbientLightSensor interface

Definition

Ambient Light Sensor defines AmbientLightSensor

[SecureContext, Exposed=Window]
interface AmbientLightSensor : Sensor {
  constructor(optional SensorOptions sensorOptions = {});
  readonly attribute double? illuminance;
};

Methods and attributes that return objects implementing AmbientLightSensor