Back to Content

Sensor: stop() method

files/en-us/web/api/sensor/stop/index.md

latest362 B
Original Source

{{securecontext_header}}{{APIRef("Sensor API")}}

The stop() method of the {{domxref("Sensor")}} interface deactivates the current sensor.

Syntax

js-nolint
stop()

Parameters

None.

Return value

None ({{jsxref("undefined")}}).

Examples

js
// TBD

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}