hasPermissions

fun hasPermissions(context: Context?, vararg perms: String): Boolean

Check if the calling context has a set of permissions.

Return

true if all permissions are already granted, false if at least one permission is not yet granted.

See also

Parameters

context

the calling context.

perms

one ore more permissions, such as Manifest.permission.CAMERA.