FusedOrientationProvider

constructor(orientationClient: FusedOrientationProviderClient, deviceOrientationRequest: DeviceOrientationRequest, coroutineScope: CoroutineScope, sharingStarted: SharingStarted = SharingStarted.WhileSubscribed(stopTimeoutMillis = 1000))(source)

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.