LocationPermission

Current foreground location authorization.

A custom provider reports NotDetermined, Granted, and NotGranted.

Values may be added in minor releases; use an else branch when matching.

Inheritors

Types

Link copied to clipboard

Foreground authorization is 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.

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

Foreground authorization is not granted.