Object PermissionUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Boolean hasPermission(Context context, String permission) Method to check if the given permission is granted JIRA Link - https://jira.corp.inmobi.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 context
        permission - 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