FusedOrientationProvider

class FusedOrientationProvider(orientationClient: FusedOrientationProviderClient, deviceOrientationRequest: DeviceOrientationRequest, coroutineScope: CoroutineScope, sharingStarted: SharingStarted) : OrientationProvider(source)

A OrientationProvider based on a DeviceOrientationRequest for FusedOrientationProviderClient

Parameters

orientationClient

the FusedOrientationProviderClient to use

deviceOrientationRequest

the DeviceOrientationRequest to use

coroutineScope

the CoroutineScope used to share the orientation flow

sharingStarted

parameter for stateIn call of orientation

Constructors

Link copied to clipboard
constructor(orientationClient: FusedOrientationProviderClient, deviceOrientationRequest: DeviceOrientationRequest, coroutineScope: CoroutineScope, sharingStarted: SharingStarted)

Properties

Link copied to clipboard
open override val orientation: StateFlow<Orientation?>