MacosLocationPermissionRequester

Foreground Core Location permission. Construct, request, and close on the main thread.

Constructors

Link copied to clipboard
constructor()

Creates a requester with its own Core Location manager.

Properties

Link copied to clipboard
val status: StateFlow<LocationPermission>

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

Functions

Link copied to clipboard
open override fun close()

Detaches the permission observer. Repeated calls have no effect.

Link copied to clipboard

Starts a foreground permission request. Throws if closed or called off the main thread.