Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard

An Android location implementation discovered through ServiceLoader.

Link copied to clipboard

Observes and requests foreground location permission on Android.

Link copied to clipboard

Foreground location from Android's location service.

Link copied to clipboard

Opens Android settings screens related to location.

Link copied to clipboard

Observes and requests browser geolocation permission.

Link copied to clipboard

Foreground location from the browser's Geolocation API.

Link copied to clipboard

The browser exposes no way to open its settings, so every screen is unavailable.

Link copied to clipboard

A host-specific desktop location implementation discovered through ServiceLoader.

Link copied to clipboard

Opens the desktop settings screen related to location.

Link copied to clipboard
@Serializable
data class HeadingMeasurement(val bearing: Bearing, val reference: HeadingReference, val accuracy: Rotation? = null, val measuredAt: Instant)

One measured horizontal direction that a device faces.

Link copied to clipboard
interface HeadingProvider

Supplies device-heading measurements.

Link copied to clipboard

North reference for a HeadingMeasurement bearing.

Link copied to clipboard
data class HeadingRequest(val minimumInterval: Duration = 1.seconds)

Preferences for device-heading updates.

Link copied to clipboard

Device heading provider backed by CLLocationManager.

Link copied to clipboard
class IosLocationPermissionRequester : <ERROR CLASS> ERROR CLASS: Symbol not found for AutoCloseable

Foreground Core Location permission holder.

Link copied to clipboard

Foreground location from Core Location.

Link copied to clipboard

Opens the iOS settings screen related to location.

Link copied to clipboard

Accuracy levels for LocationRequest, which are mapped to platform accuracy and power levels.

Link copied to clipboard

The accuracy level that the user authorized.

Link copied to clipboard

Whether a location implementation has a usable platform backend.

Link copied to clipboard
sealed interface LocationEvent

Events emitted while collecting LocationProvider.updates.

Link copied to clipboard
@Serializable
data class LocationMeasurement(val position: Position, val horizontalAccuracy: Length? = null, val altitudeAccuracy: Length? = null, val distancePerSecond: Length? = null, val distancePerSecondAccuracy: Length? = null, val course: Bearing? = null, val courseAccuracy: Rotation? = null, val measuredAt: Instant)

One measured geographic location.

Link copied to clipboard
sealed interface LocationPermission

Current foreground location authorization.

Link copied to clipboard

Supplies foreground location updates and permission status.

Link copied to clipboard
data class LocationRequest(val accuracy: LocationAccuracy = LocationAccuracy.High, val minimumInterval: Duration = 1.seconds, val minimumDistance: Length = 1.meters)

Preferences for foreground location updates.

Link copied to clipboard

Reasons that a provider cannot currently deliver location measurements.

Link copied to clipboard

Opens system settings screens related to location.

Link copied to clipboard

A provider for a target or host that has no installed location implementation.

Link copied to clipboard
sealed interface XdgPortalWindow

A window that an XDG portal can use as the parent for a system dialog.

Functions

Link copied to clipboard
fun ERROR CLASS: Symbol not found for CLLocation.asMapLibreLocationMeasurement(): LocationMeasurement
Link copied to clipboard

Converts this platform location and preserves its monotonic age at receipt.

Link copied to clipboard

Creates the default Android heading provider: the discovered backend's provider when one is available, and the sensor-based AndroidHeadingProvider otherwise.

Link copied to clipboard

Creates the default Android location provider: the discovered backend's provider when one is available, a provider that reports the failure when discovery is misconfigured, and the framework AndroidLocationProvider otherwise.

Creates the default desktop location provider from the installed backend. The provider's system dialogs are parented to window, and LocationProvider.close releases its process resources.