Sensor

Overview

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

Location


Properties


activated

 

property activated: Boolean read;

 

Boolean activated { get; }

 

var activated: Boolean { get{} }

 

Boolean activated { __get; }

 

ReadOnly Property activated() As Boolean

hasReading

 

property hasReading: Boolean read;

 

Boolean hasReading { get; }

 

var hasReading: Boolean { get{} }

 

Boolean hasReading { __get; }

 

ReadOnly Property hasReading() As Boolean

onactivate

 

property onactivate: EventListener read write;

 

EventListener onactivate { get; set; }

 

var onactivate: EventListener { get{} set{} }

 

EventListener onactivate { __get; __set; }

 

Property onactivate() As EventListener

onerror

 

property onerror: EventListener read write;

 

EventListener onerror { get; set; }

 

var onerror: EventListener { get{} set{} }

 

EventListener onerror { __get; __set; }

 

Property onerror() As EventListener

onreading

 

property onreading: EventListener read write;

 

EventListener onreading { get; set; }

 

var onreading: EventListener { get{} set{} }

 

EventListener onreading { __get; __set; }

 

Property onreading() As EventListener

timestamp

 

property timestamp: DOMHighResTimeStamp read;

 

DOMHighResTimeStamp timestamp { get; }

 

var timestamp: DOMHighResTimeStamp { get{} }

 

DOMHighResTimeStamp timestamp { __get; }

 

ReadOnly Property timestamp() As DOMHighResTimeStamp