Package com.fondesa.kpermissions

Types

PermissionStatus
Link copied to clipboard
sealed class PermissionStatus

Identifies the status of a permission.

Functions

allDenied
Link copied to clipboard
fun List<PermissionStatus>.allDenied(): Boolean

Checks if all the PermissionStatus in the given list are instances of PermissionStatus.Denied. This method is a convenience method even for single permission's requests.

allGranted
Link copied to clipboard
fun List<PermissionStatus>.allGranted(): Boolean

Checks if all the PermissionStatus in the given list are instances of PermissionStatus.Granted. This method is a convenience method even for single permission's requests.

allPermanentlyDenied
Link copied to clipboard
fun List<PermissionStatus>.allPermanentlyDenied(): Boolean

Checks if all the PermissionStatus in the given list are instances of PermissionStatus.Denied.Permanently. This method is a convenience method even for single permission's requests.

allRequestRequired
Link copied to clipboard
fun List<PermissionStatus>.allRequestRequired(): Boolean

Checks if all the PermissionStatus in the given list are instances of PermissionStatus.RequestRequired. This method is a convenience method even for single permission's requests.

allShouldShowRationale
Link copied to clipboard
fun List<PermissionStatus>.allShouldShowRationale(): Boolean

Checks if all the PermissionStatus in the given list are instances of PermissionStatus.Denied.ShouldShowRationale. This method is a convenience method even for single permission's requests.

anyDenied
Link copied to clipboard
fun List<PermissionStatus>.anyDenied(): Boolean

Checks if at least one PermissionStatus in the given list is an instance of PermissionStatus.Denied. This method is a convenience method even for single permission's requests.

anyGranted
Link copied to clipboard
fun List<PermissionStatus>.anyGranted(): Boolean

Checks if at least one PermissionStatus in the given list is an instance of PermissionStatus.Granted. This method is a convenience method even for single permission's requests.

anyPermanentlyDenied
Link copied to clipboard
fun List<PermissionStatus>.anyPermanentlyDenied(): Boolean

Checks if at least one PermissionStatus in the given list is an instance of PermissionStatus.Denied.Permanently. This method is a convenience method even for single permission's requests.

anyRequestRequired
Link copied to clipboard
fun List<PermissionStatus>.anyRequestRequired(): Boolean

Checks if at least one PermissionStatus in the given list is an instance of PermissionStatus.RequestRequired. This method is a convenience method even for single permission's requests.

anyShouldShowRationale
Link copied to clipboard
fun List<PermissionStatus>.anyShouldShowRationale(): Boolean

Checks if at least one PermissionStatus in the given list is an instance of PermissionStatus.Denied.ShouldShowRationale. This method is a convenience method even for single permission's requests.

isDenied
Link copied to clipboard
fun PermissionStatus.isDenied(): Boolean

Checks if a status is PermissionStatus.Denied.

isGranted
Link copied to clipboard
fun PermissionStatus.isGranted(): Boolean

Checks if a status is PermissionStatus.Granted.

isPermanentlyDenied
Link copied to clipboard
fun PermissionStatus.isPermanentlyDenied(): Boolean
isRequestRequired
Link copied to clipboard
fun PermissionStatus.isRequestRequired(): Boolean

Checks if a status is PermissionStatus.RequestRequired.

shouldShowRationale
Link copied to clipboard
fun PermissionStatus.shouldShowRationale(): Boolean