AndroidDirectionProvider

Direction provider that uses Android's native SensorManager instead of Google Play Services' FusedOrientationProviderClient.

This uses the rotation vector sensor (or falls back to accelerometer + magnetometer) to compute device orientation and heading.

Constructors

Link copied to clipboard
constructor(context: Context)

Properties

Link copied to clipboard
Link copied to clipboard
val mutableOrientationFlow: MutableStateFlow<DeviceDirection?>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun start(audio: NativeAudioEngine, locProvider: LocationProvider)