Class PermissionGroup


  • public class PermissionGroup
    extends java.lang.Object
    An convenience object that encodes Android Permission Group property values
    Author:
    Ben Holland, Vani Bojja
    • Method Detail

      • addedInAPILevel

        public int addedInAPILevel()
        Returns the API version the permission group was added in
        Returns:
      • getQualifiedName

        public java.lang.String getQualifiedName()
        Returns the qualified permission group name
        Returns:
      • getSimpleName

        public java.lang.String getSimpleName()
        Returns an unqualified permission group name
        Returns:
      • getReference

        public java.lang.String getReference()
        Returns the reference information for the source of this permission group or an empty string if there is no available reference
        Returns:
      • getPermissions

        public java.util.HashSet<Permission> getPermissions()
        Returns a list of permissions associated with the permission group
        Returns:
      • getDescription

        public java.lang.String getDescription()
        Returns a description of the permission group
        Returns:
      • getPermissionGroupByQualifiedName

        public static PermissionGroup getPermissionGroupByQualifiedName​(java.lang.String qualifiedName)
        Returns the permission group object matching the qualified permission name or null if the permission group is not found in the known permissions list
        Parameters:
        qualifiedName -
        Returns:
      • getPermissionGroupBySimpleName

        public static PermissionGroup getPermissionGroupBySimpleName​(java.lang.String simpleName)
        Returns the permission group object matching the simple permission name or null if the permission group is not found in the known permissions list
        Parameters:
        simpleName -
        Returns:
      • getAllPermissionGroups

        public static java.util.Collection<PermissionGroup> getAllPermissionGroups()
        Returns a collection of all known permission groups
        Returns: