public class PermissionChecker
extends java.lang.Object
Constructor and Description |
---|
PermissionChecker() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkSelfPermission(android.content.Context ctx,
java.lang.String permission)
检查是否有某个权限
|
static void |
requestPermissions(android.app.Activity activity,
java.lang.String[] permissions,
int code)
动态申请多个权限
|
public static boolean checkSelfPermission(android.content.Context ctx, java.lang.String permission)
ctx
- permission
- public static void requestPermissions(android.app.Activity activity, java.lang.String[] permissions, int code)
activity
- code
-