title | short-title | slug | page-type | browser-compat |
---|---|---|---|---|
Sensor: activated property |
activated |
Web/API/Sensor/activated |
web-api-instance-property |
api.Sensor.activated |
{{securecontext_header}}{{APIRef("Sensor API")}}
The activated
read-only property
of the {{domxref("Sensor")}} interface returns a boolean value indicating
whether the sensor is active.
Because {{domxref('Sensor')}} is a base class, activated
may only be read
from one of its derived classes.
A boolean value.
{{Specifications}}
{{Compat}}