FusedOrientationProvider
class FusedOrientationProvider(orientationClient: FusedOrientationProviderClient, deviceOrientationRequest: DeviceOrientationRequest, coroutineScope: CoroutineScope, sharingStarted: SharingStarted = SharingStarted.WhileSubscribed(stopTimeoutMillis = 1000)) : OrientationProvider(source)
An OrientationProvider backed by the Google Play Services FusedOrientationProviderClient.
DeviceOrientation.headingDegrees maps to Orientation.orientation, and DeviceOrientation.headingErrorDegrees maps to its accuracy.
Parameters
orientationClient
Client used to request orientation updates.
deviceOrientationRequest
Platform request passed to the client.
coroutineScope
Scope used to share the orientation flow.
sharingStarted
Sharing policy for the orientation flow.