The AmbientLightSensor interface of the the Sensor APIs returns current light level or illuminance of the ambient light around hosting device.
The AmbientLightSensor interface of the the Sensor APIs returns current light level or illuminance of the ambient light around hosting device.
Constructor.
The AmbinentLightSensor() constructor creates a new web.AmbientLightSensor
object, which returns the current light level or illuminance of the ambient light around the hosting device.
options Optional Currently only one option is supported:
frequency: The desired number of times per second a sample should be taken, meaning the number of times per second that web.sensor.onreading
will be called. A whole number or decimal may be used, the latter for frequencies less than a second. The actual reading frequency depends device hardware and consequently may be less than requested.
See also: https://developer.mozilla.org/en-US/docs/Web/API/AmbientLightSensor/AmbientLightSensor
Constructor. The AmbinentLightSensor() constructor creates a new `web.AmbientLightSensor` object, which returns the current light level or illuminance of the ambient light around the hosting device. options Optional Currently only one option is supported: frequency: The desired number of times per second a sample should be taken, meaning the number of times per second that `web.sensor.onreading` will be called. A whole number or decimal may be used, the latter for frequencies less than a second. The actual reading frequency depends device hardware and consequently may be less than requested. See also: `https://developer.mozilla.org/en-US/docs/Web/API/AmbientLightSensor/AmbientLightSensor`
(illuminance this)
Property.
The illuminance property of the web.AmbientLightSensor
interface
the current light level in lux of the ambient light level around
hosting device.
var level = AmbientLightSensor.illuminance
See also: https://developer.mozilla.org/en-US/docs/Web/API/AmbientLightSensor/illuminance
Property. The illuminance property of the `web.AmbientLightSensor` interface the current light level in lux of the ambient light level around hosting device. `var level = AmbientLightSensor.illuminance` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AmbientLightSensor/illuminance`
(set-illuminance! this val)
Property.
The illuminance property of the web.AmbientLightSensor
interface
the current light level in lux of the ambient light level around
hosting device.
var level = AmbientLightSensor.illuminance
See also: https://developer.mozilla.org/en-US/docs/Web/API/AmbientLightSensor/illuminance
Property. The illuminance property of the `web.AmbientLightSensor` interface the current light level in lux of the ambient light level around hosting device. `var level = AmbientLightSensor.illuminance` See also: `https://developer.mozilla.org/en-US/docs/Web/API/AmbientLightSensor/illuminance`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close