start

Function start 

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

Starts the accelerometer.

§Errors

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

§Examples

start()?;