IosLocationPermissionRequester

class IosLocationPermissionRequester : <ERROR CLASS> ERROR CLASS: Symbol not found for AutoCloseable(source)

Foreground Core Location permission holder.

IosLocationProvider delegates LocationProvider.permission and LocationProvider.requestPermission to an instance of this class. Use it directly when a custom provider needs the same Core Location permission behavior.

Construct, request permission, and close on the main thread. Closing detaches the permission observer and releases the manager.

CLAuthorizationStatus maps an authorized status to LocationPermission.Granted, notDetermined to LocationPermission.NotGranted with canRequest = true, denied or restricted to canRequest = false, and an unrecognized value to canRequest = null. CLLocationManager.accuracyAuthorization distinguishes precise from approximate grants.

Constructors

Link copied to clipboard
constructor()

Creates a requester with its own Core Location manager.

Properties

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

Current foreground location permission, updated when Core Location reports a change.

Functions

Link copied to clipboard
open override fun close()

Detaches the permission observer and releases the manager. Repeated calls have no effect.

Link copied to clipboard

Starts a foreground permission request and returns immediately. The result is published to status.