HmsLocationBackend

Installs Huawei fused location as the Android default.

java.util.ServiceLoader discovers this backend when an application packages this module, so createDefaultLocationProvider returns FusedLocationProvider. isAvailable reports whether Huawei Mobile Services is available on the device, and the default falls back to the framework provider on a device without it. Android's framework provider continues to supply orientation.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val id: String
Link copied to clipboard
open val priority: Int

Functions

Link copied to clipboard
open override fun createLocationProvider(context: Context): LocationProvider
Link copied to clipboard
open fun createOrientationProvider(context: Context, updateInterval: Duration, coroutineScope: CoroutineScope): OrientationProvider?
Link copied to clipboard
open override fun isAvailable(context: Context): Boolean