Java android.support.v4.content PermissionChecker fields, constructors, methods, implement or subclass

Example usage for Java android.support.v4.content PermissionChecker fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.support.v4.content PermissionChecker.

The text is from its open source code.

Field

intPERMISSION_GRANTED
Permission result: The permission is granted.
intPERMISSION_DENIED
Permission result: The permission is denied.

Method

intcheckCallingOrSelfPermission(@NonNull Context context, @NonNull String permission)
Checks whether the IPC you are handling or your app has a given permission and whether the app op that corresponds to this permission is allowed.
intcheckSelfPermission(@NonNull Context context, @NonNull String permission)
Checks whether your app has a given permission and whether the app op that corresponds to this permission is allowed.