Package com.inmobi.commons.utils
Object PermissionUtils
-
- All Implemented Interfaces:
public class PermissionUtils
-
-
Field Summary
Fields Modifier and Type Field Description public final static PermissionUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static BooleanhasPermission(Context context, String permission)Method to check if the given permission is granted JIRA Link - https://jira.corp.inmobi. -
-
Method Detail
-
hasPermission
final static Boolean hasPermission(Context context, String permission)
Method to check if the given permission is granted JIRA Link - https://jira.corp.inmobi.com/browse/DI-5664
- Parameters:
context- Represents the application contextpermission- Represents the permission to be checked- Returns:
True if the given permission is granted or false if not granted or some runtime exception occurred during the check
-
-
-
-