PermissionCenter

Central resolver mapping a PermissionKind to concrete Android runtime permissions and evaluating whether those permissions are currently granted.

Keeping this logic in one place isolates API-level differences (e.g. NEARBY_WIFI_DEVICES introduced in Android 13 / Tiramisu) from category definitions and collectors.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun isGranted(context: Context, kind: PermissionKind): Boolean

Checks whether the permission group backing kind is currently granted.

Link copied to clipboard

Returns the concrete Manifest.permission strings that back the given kind.