Definition
Generic Sensor API defines Sensor
[SecureContext, Exposed=(DedicatedWorker, Window)]
interface Sensor : EventTarget {
readonly attribute boolean activated;
readonly attribute boolean hasReading;
readonly attribute DOMHighResTimeStamp? timestamp;
undefined start();
undefined stop();
attribute EventHandler onreading;
attribute EventHandler onactivate;
attribute EventHandler onerror;
};
Referring IDL interfaces/dictionaries
Referring specifications
- Accelerometer refers to
Sensor
- Ambient Light Sensor refers to
Sensor
- Geolocation Sensor refers to
Sensor
- Gyroscope refers to
Sensor
- Magnetometer refers to
Sensor
- Orientation Sensor refers to
Sensor
- Proximity Sensor refers to
Sensor