Navigation SDK for Android Reference (1.0.0-rc.8)
All modules /  libnavigation-core / com.mapbox.navigation.core.sensors / SensorEventEmitter / start

start

fun start(sensorOptions: SensorOptions, eventEmitter: (SensorEvent) -> Unit): Unit

Register to the SensorManager and emit the SensorEvents.

Parameters

sensorOptions - determines which sensors and at what rate

eventEmitter - callback for every event emitted