DesktopLocationBackend

A host-specific desktop location implementation discovered through ServiceLoader.

A backend installs one provider that carries both location updates and permission. No installed or available backend maps LocationProvider.backendAvailability to LocationBackendAvailability.Unsupported. Multiple available backends, a ServiceConfigurationError, or an exception while checking or creating a backend maps the property to LocationBackendAvailability.Misconfigured. The selected backend documents its location-event and permission mappings.

Properties

Link copied to clipboard
abstract val id: String

A stable name used in diagnostics.

Functions

Link copied to clipboard

Creates a location provider whose system dialogs are parented to window.

Link copied to clipboard
abstract fun isAvailable(): Boolean

Whether this backend can run on the current operating system and architecture.