AppleLocationProvider

Foreground location from Core Location on iOS and macOS.

Applies the requested accuracy and minimum distance. LocationRequest.minimumInterval is ignored. See AppleLocationPermissionRequester for permission behavior. The application must declare its location usage description in its Info.plist.

Create the provider, request permission, and close it on the main thread. Cancel updates collectors before closing.

Disabled location services report LocationUnavailableReason.ServicesDisabled. Denied or declined permission reports LocationUnavailableReason.PermissionDenied. Network failures and unknown locations report LocationUnavailableReason.TemporarilyUnavailable. Other failures report a null reason.

Constructors

Link copied to clipboard
constructor()

Creates a provider with its own permission requester.

Properties

Link copied to clipboard

Whether this provider has a usable platform implementation, stable for its lifetime.

Link copied to clipboard
open val backendId: String?

A stable implementation name for diagnostics, when the provider declares one.

Link copied to clipboard
open override val permission: ERROR CLASS: Symbol not found for StateFlow<org/maplibre/compose/location/LocationPermission>

Current foreground location permission.

Functions

Link copied to clipboard
open override fun close()

Releases resources owned by this provider. Repeated calls have no effect.

Link copied to clipboard
open override fun requestPermission()

Starts a foreground permission request and returns immediately.

Link copied to clipboard
open override fun updates(request: LocationRequest = LocationRequest.Standard): ERROR CLASS: Symbol not found for Flow<org/maplibre/compose/location/LocationEvent>

Returns a cold stream of foreground location updates.