LocationPermission

sealed interface LocationPermission(source)

Current foreground location authorization.

Inheritors

Types

Link copied to clipboard

Foreground authorization is granted at accuracy.

Link copied to clipboard
data class NotGranted(val canRequest: Boolean?, val shouldShowRationale: Boolean = false) : LocationPermission

Foreground authorization is not granted.

Link copied to clipboard

Authorization has not been determined. Collecting LocationProvider.updates retries the permission check without prompting. The provider must determine authorization before delivering measurements and report check failures through LocationEvent.Unavailable.