Liking cljdoc? Tell your friends :D

web.sensors.Sensor

The Sensor interface of the the Sensor APIs is the base class all the other sensor interfaces. This interface cannot be used Instead it provides properties, event handlers, and methods accessed interfaces that inherit from it.

The Sensor interface of the the Sensor APIs is the base class
all the other sensor interfaces. This interface cannot be used
Instead it provides properties, event handlers, and methods accessed
interfaces that inherit from it.
raw docstring

activatedcljs

(activated this)

Property.

[Read Only]

The activated read-only property of the web.sensors.Sensor returns a js.Boolean indicating whether the sensor is active.

`var boolean = sensorInstance.activated

Because web.sensors.Sensor is a base class, activated may only be read from one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/activated

Property.

[Read Only]

The activated read-only property of the `web.sensors.Sensor`
returns a `js.Boolean` indicating whether the sensor is active.

`var boolean = sensorInstance.activated

Because `web.sensors.Sensor` is a base class, activated may only be read from one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/activated`
sourceraw docstring

has-readingcljs

(has-reading this)

Property.

[Read Only]

The hasReading read-only property of the web.sensors.Sensor returns a js.Boolean indicating whether the sensor has a reading.

`var boolean = sensorInstance.hasReading

Because web.sensors.Sensor is a base class, hasReading may only be read from one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/hasReading

Property.

[Read Only]

The hasReading read-only property of the `web.sensors.Sensor`
returns a `js.Boolean` indicating whether the sensor has a reading.

`var boolean = sensorInstance.hasReading

Because `web.sensors.Sensor` is a base class, hasReading may only be read from one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/hasReading`
sourceraw docstring

onactivatecljs

(onactivate this)

Property.

The onactivate EventHandler is called when one of the Sensor child interfaces becomes active.

`sensorInstance.onactivate = function sensorInstance.addEventListener('activate', function() { ... })

Because web.sensors.Sensor is a base class, onactivate may only be used on one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onactivate

Property.

The onactivate `EventHandler` is called when one of the Sensor
child interfaces becomes active.

`sensorInstance.onactivate = function
sensorInstance.addEventListener('activate', function() { ... })

Because `web.sensors.Sensor` is a base class, onactivate may only be used on one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onactivate`
sourceraw docstring

onerrorcljs

(onerror this)

Property.

The onerror EventHandler is called when an error occurs on of the child interfaces of the web.sensors.Sensor interface.

`sensorInstance.onerror = function sensorInstance.addEventListener('error', function() { ... })

Because web.sensors.Sensor is a base class, onerror may only be used on one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onerror

Property.

The onerror `EventHandler` is called when an error occurs on
of the child interfaces of the `web.sensors.Sensor` interface.

`sensorInstance.onerror = function
sensorInstance.addEventListener('error', function() { ... })

Because `web.sensors.Sensor` is a base class, onerror may only be used on one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onerror`
sourceraw docstring

onreadingcljs

(onreading this)

Property.

The onreading EventHandler is called when a reading is taken one of the child interfaces of the web.sensors.Sensor interface.

`sensorInstance.onreading = function sensorInstance.addEventListener('reading', function() { ... })

Because web.sensors.Sensor is a base class, onreading may only be used on one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onreading

Property.

The onreading `EventHandler` is called when a reading is taken
one of the child interfaces of the `web.sensors.Sensor` interface.

`sensorInstance.onreading = function
sensorInstance.addEventListener('reading', function() { ... })

Because `web.sensors.Sensor` is a base class, onreading may only be used on one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onreading`
sourceraw docstring

set-onactivate!cljs

(set-onactivate! this val)

Property.

The onactivate EventHandler is called when one of the Sensor child interfaces becomes active.

`sensorInstance.onactivate = function sensorInstance.addEventListener('activate', function() { ... })

Because web.sensors.Sensor is a base class, onactivate may only be used on one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onactivate

Property.

The onactivate `EventHandler` is called when one of the Sensor
child interfaces becomes active.

`sensorInstance.onactivate = function
sensorInstance.addEventListener('activate', function() { ... })

Because `web.sensors.Sensor` is a base class, onactivate may only be used on one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onactivate`
sourceraw docstring

set-onerror!cljs

(set-onerror! this val)

Property.

The onerror EventHandler is called when an error occurs on of the child interfaces of the web.sensors.Sensor interface.

`sensorInstance.onerror = function sensorInstance.addEventListener('error', function() { ... })

Because web.sensors.Sensor is a base class, onerror may only be used on one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onerror

Property.

The onerror `EventHandler` is called when an error occurs on
of the child interfaces of the `web.sensors.Sensor` interface.

`sensorInstance.onerror = function
sensorInstance.addEventListener('error', function() { ... })

Because `web.sensors.Sensor` is a base class, onerror may only be used on one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onerror`
sourceraw docstring

set-onreading!cljs

(set-onreading! this val)

Property.

The onreading EventHandler is called when a reading is taken one of the child interfaces of the web.sensors.Sensor interface.

`sensorInstance.onreading = function sensorInstance.addEventListener('reading', function() { ... })

Because web.sensors.Sensor is a base class, onreading may only be used on one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onreading

Property.

The onreading `EventHandler` is called when a reading is taken
one of the child interfaces of the `web.sensors.Sensor` interface.

`sensorInstance.onreading = function
sensorInstance.addEventListener('reading', function() { ... })

Because `web.sensors.Sensor` is a base class, onreading may only be used on one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/onreading`
sourceraw docstring

startcljs

(start this)

Method.

The start method activates one of the sensors based on Sensor.

Sensor.start()

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/start

Method.

The start method activates one of the sensors based on Sensor.

`Sensor.start()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/start`
sourceraw docstring

stopcljs

(stop this)

Method.

The stop method of the web.sensors.Sensor interface deactivates current sensor.

Sensor.stop()

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/stop

Method.

The stop method of the `web.sensors.Sensor` interface deactivates
current sensor.

`Sensor.stop()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/stop`
sourceraw docstring

timestampcljs

(timestamp this)

Property.

[Read Only]

The timestamp read-only property of the web.sensors.Sensor returns the time stamp of the latest sensor reading.

`var timestamp = sensorInstance.timestamp

Because web.sensors.Sensor is a base class, timestamp may only be read from one of its derived classes.`

See also: https://developer.mozilla.org/en-US/docs/Web/API/Sensor/timestamp

Property.

[Read Only]

The timestamp read-only property of the `web.sensors.Sensor`
returns the time stamp of the latest sensor reading.

`var timestamp = sensorInstance.timestamp

Because `web.sensors.Sensor` is a base class, timestamp may only be read from one of its derived classes.`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/Sensor/timestamp`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close