GmsLocationBackend

Installs the fused providers as the Android defaults.

java.util.ServiceLoader discovers this backend when an application packages this module, so createDefaultLocationProvider and createDefaultOrientationProvider return the fused providers. isAvailable reports whether Google Play services is available on the device, and the defaults fall back to the framework providers on a device without it.

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 override fun createOrientationProvider(context: Context, updateInterval: Duration, coroutineScope: CoroutineScope): OrientationProvider
Link copied to clipboard
open override fun isAvailable(context: Context): Boolean