AndroidOrientationProvider

constructor(context: Context, updateInterval: Duration, coroutineScope: CoroutineScope, sharingStarted: SharingStarted = SharingStarted.WhileSubscribed(stopTimeoutMillis = 1000))(source)

Parameters

context

Context used to obtain the platform sensor manager.

updateInterval

Preferred minimum time between delivered headings.

coroutineScope

Scope used to share the orientation flow.

sharingStarted

Sharing policy for the orientation flow.