isPermissionGranted

fun isPermissionGranted(permission: Permission, fallback: Boolean = false): Boolean

Checks if a permission is granted for the user in the current session.

Return

A boolean indicating if the user has the requested permission (true) or not (false).

Parameters

permission

Permission to be checked.

fallback

Value returned when the permission is not active in the session capabilities.