createDefaultOrientationProvider

fun createDefaultOrientationProvider(context: Context, updateInterval: Duration, coroutineScope: CoroutineScope): OrientationProvider(source)

Creates the default Android orientation provider: the discovered backend's provider when one is available, and the sensor-based AndroidOrientationProvider otherwise. coroutineScope shares the provider's orientation flow.