LocationPermissionResult

data class LocationPermissionResult(val cancelled: Boolean = true, val finePermissionGranted: Boolean = false, val coarsePermissionGranted: Boolean = false, val backgroundPermissionGranted: Boolean = false, val finePermissionRequested: Boolean = false, val coarsePermissionRequested: Boolean = false, val backgroundPermissionRequested: Boolean = false)

Contains information about the result of location permission request.

Constructors

Link copied to clipboard
constructor(cancelled: Boolean = true, finePermissionGranted: Boolean = false, coarsePermissionGranted: Boolean = false, backgroundPermissionGranted: Boolean = false, finePermissionRequested: Boolean = false, coarsePermissionRequested: Boolean = false, backgroundPermissionRequested: Boolean = false)

Properties

Link copied to clipboard

true indicates that background location permission was granted, either for coarse or fine location. When true, foreground location permission is also implicitly granted.

Link copied to clipboard

true indicates that background location permission was requested to the user.

Link copied to clipboard
val cancelled: Boolean = true

true indicates that permission request was cancelled by the user.

Link copied to clipboard

true indicates that coarse location permission was granted.

Link copied to clipboard

true indicates that coarse location permission was requested to the user.

Link copied to clipboard

true indicates that fine location permission was granted. When this is true, coarse permission is also implicitly granted.

Link copied to clipboard

true indicates that fine location permission was requested to the user.