isPermissionAuthorized

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

Checks if a specific permission is authorized.

This function uses the PermissionService to check if a specific permission is authorized. It returns a Boolean indicating whether the permission is granted.

Return

A Boolean indicating whether the permission is granted.

Parameters

context

The Context instance. This is typically the current activity or application context from which this function is called. It is used to provide context for the permission check.

permission

The Permission instance representing the permission to check.