public interface PermissionHolder
Modifier and Type | Interface and Description |
---|---|
static class |
PermissionHolder.SetPermissionLookup
A convenience implementation of
PermissionHolder backed by a set |
Modifier and Type | Method and Description |
---|---|
com.android.sdklib.AndroidVersion |
getMinSdkVersion() |
com.android.sdklib.AndroidVersion |
getTargetSdkVersion() |
boolean |
hasPermission(java.lang.String permission)
Returns true if the permission holder has been granted the given permission
|
boolean |
isRevocable(java.lang.String permission)
Returns true if the given permission is known to be revocable for targetSdkVersion ≥ M
|
boolean hasPermission(@NonNull java.lang.String permission)
boolean isRevocable(@NonNull java.lang.String permission)
@NonNull com.android.sdklib.AndroidVersion getMinSdkVersion()
@NonNull com.android.sdklib.AndroidVersion getTargetSdkVersion()