hasPermission

abstract fun hasPermission(permission: String): Boolean

Checks if the holder has a specific permission.

Return

true if the holder has the specified permission; otherwise, false.

Parameters

permission

The permission to check.