FusedOrientationSource

An orientation fusion outside the platform sensors, such as Play services' Fused Orientation Provider. Each flavor binds one; NONE is the flavor without it, and the camera pose falls back to the rotation vector.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface Listener

Functions

Link copied to clipboard
abstract fun start(reduced: Boolean, executor: Executor, listener: FusedOrientationSource.Listener, onFailure: () -> Unit): AutoCloseable?

Starts delivering samples on executor, slower when reduced, and returns the handle that stops them, or null when the source is unavailable. onFailure runs on executor if the source fails after it was started.