stop

Function stop 

Source
pub fn stop() -> Result<(), JsValue>
Expand description

Stops the accelerometer.

§Errors

Returns JsValue if the underlying JavaScript call fails or the sensor is unavailable.

§Examples

stop()?;