start

fun start(startTimestamp: Long = SystemClock.elapsedRealtimeNanos()): Boolean

Starts collecting sensor measurements.

Return

true if sensor is available and was successfully enabled.

Parameters

startTimestamp

monotonically increasing timestamp when collector starts. If not provided, system clock is used by default, otherwise, the value can be provided to sync multiple sensor collector instances.

Throws

if collector is already running.