isAuthorized

fun isAuthorized(context: Context, permission: Permission): Boolean

Checks if a specific permission is granted.

Return

Boolean indicating whether the permission is granted.

Parameters

context

The context from which the check is made.

permission

The permission to check.