isGranted

fun isGranted(context: Context, kind: PermissionKind): Boolean

Checks whether the permission group backing kind is currently granted.

Handles special cases where "granted" means any of several permissions:

Return

true if the app currently holds sufficient permission for kind.

Parameters

context

Context used to check self permissions.

kind

Logical permission group to evaluate.