NotGranted

data class NotGranted(val canRequest: Boolean?, val shouldShowRationale: Boolean = false) : LocationPermission(source)

Foreground authorization is not granted.

Constructors

Link copied to clipboard
constructor(canRequest: Boolean?, shouldShowRationale: Boolean = false)

Properties

Link copied to clipboard

true when the platform reports that the application can request authorization, false when it reports that authorization must change outside the application, and null when the platform does not expose that distinction.

Link copied to clipboard

true when the platform advises explaining the request before making it, which implies canRequest = true. Android reports it from shouldShowRequestPermissionRationale; every other platform reports false.