public class PermissionUtils
extends java.lang.Object
Constructor and Description |
---|
PermissionUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasPermission(android.content.Context context,
java.lang.String permission)
Helper method for checking if a permission is allowed.
|
public static boolean hasPermission(android.content.Context context, java.lang.String permission)
context
- The current context.permission
- The string name of a permission to check.