D
- the subject class of the permissions set. This class will usually implement
PermissionsProvider
, in order to be able to provide access to its permissions
set, but other mechanisms to associate the permissions with their target are also
possible.public class Permissions<D> extends Object
Constructor and Description |
---|
Permissions() |
Modifier and Type | Method and Description |
---|---|
boolean |
areAllPermissionsGranted(D domain,
Intent... intents) |
List<Permission<? super D>> |
getPermissions() |
boolean |
isAnyPermissionGranted(D domain,
Intent... intents) |
boolean |
isGrantAll()
Return whether this Permissions Object always grants every permission, because there are no
Permission s installed and the default is to grant permission. |
boolean |
isPermissionGranted(D domain,
Intent action) |
public List<Permission<? super D>> getPermissions()
public boolean isGrantAll()
Permission
s installed and the default is to grant permission. If this method returns
true
, permission checking code improve efficiency by skipping the creation of
Intent
s.true
if any conceivable permission is always granted.Copyright © 2024 levigo holding gmbh. All rights reserved.