MacosLocationProvider

Foreground location from macOS Core Location.

The application's Info.plist must declare NSLocationWhenInUseUsageDescription. Applies the requested accuracy and minimum distance. LocationRequest.minimumInterval is ignored. See MacosLocationPermissionRequester for permission behavior.

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

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
open val backendId: String?
Link copied to clipboard
open override val permission: StateFlow<LocationPermission>

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun requestPermission()
Link copied to clipboard
open override fun updates(request: LocationRequest): Flow<LocationEvent>