Package-level declarations

Types

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
Link copied to clipboard
class AndroidOrientationProvider(context: Context, updateInterval: Duration, coroutineScope: CoroutineScope, sharingStarted: SharingStarted = SharingStarted.WhileSubscribed(stopTimeoutMillis = 1000)) : OrientationProvider

An OrientationProvider built on Android's SensorManager.

Link copied to clipboard

Opens Android settings screens related to location.

Link copied to clipboard
@Serializable
data class BearingWithAccuracy(val value: Bearing, val accuracy: Rotation?)

Represents a bearing value with its potential accuracy.

Link copied to clipboard

Observes and requests browser geolocation permission.

Link copied to clipboard

A browser location provider backed by the 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

A desktop provider whose process resources can be released with close.

Link copied to clipboard

Opens the desktop settings screen related to location.

Link copied to clipboard

Foreground Core Location permission holder.

Link copied to clipboard
class IosOrientationProvider(updateInterval: ERROR CLASS: Symbol not found for Duration, coroutineScope: ERROR CLASS: Symbol not found for CoroutineScope, sharingStarted: ERROR CLASS: Symbol not found for SharingStarted = SharingStarted.WhileSubscribed(stopTimeoutMillis = 1000)) : OrientationProvider

Device heading provider backed by CLLocationManager.

Link copied to clipboard

Opens the iOS settings screen related to location.

Link copied to clipboard
@Serializable
data class Location(val position: PositionWithAccuracy, val altitudeAccuracy: Length? = null, val speed: SpeedWithAccuracy? = null, val course: BearingWithAccuracy? = null, val timestamp: TimeMark)

Describes a user's 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
sealed interface LocationPermission

Current foreground location authorization.

Link copied to clipboard

This is an intentionally very limited abstraction over the various platform APIs for geolocation. It is specialized to the use case of maplibre-compose.

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

An orientation provider that never supplies a heading.

Link copied to clipboard
@Serializable
data class Orientation(val orientation: BearingWithAccuracy? = null, val timestamp: TimeMark)

A device-heading measurement.

Link copied to clipboard

Supplies device-heading measurements.

Link copied to clipboard
@Serializable
data class PositionWithAccuracy(val value: Position, val accuracy: Length?)

Represents a geographical position with an associated accuracy.

Link copied to clipboard
@Serializable
data class SpeedWithAccuracy(val distancePerSecond: Length, val accuracy: Length?)

Represents a speed value with its potential accuracy.

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.asMapLibreLocation(): Location
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 DesktopLocationProvider.close releases its process resources.

Link copied to clipboard
fun createDefaultOrientationProvider(context: Context, updateInterval: Duration, coroutineScope: CoroutineScope): OrientationProvider

Creates the default Android orientation provider: the discovered backend's provider when one is available, and the sensor-based AndroidOrientationProvider otherwise. coroutineScope shares the provider's orientation flow.