# Print output for @column tags ?> PermissionGroupInfo - Android SDK | Android Developers

Most visited

Recently visited

PermissionGroupInfo

public class PermissionGroupInfo
extends PackageItemInfo implements Parcelable

java.lang.Object
   ↳ android.content.pm.PackageItemInfo
     ↳ android.content.pm.PermissionGroupInfo


Information you can retrieve about a particular security permission group known to the system. This corresponds to information collected from the AndroidManifest.xml's <permission-group> tags.

Summary

Constants

int FLAG_PERSONAL_INFO

Flag for flags, corresponding to personalInfo value of R.attr.permissionGroupFlags.

Inherited constants

Fields

public static final Creator<PermissionGroupInfo> CREATOR

public int descriptionRes

A string resource identifier (in the package's resources) of this permission's description.

public int flags

Additional flags about this group as given by R.attr.permissionGroupFlags.

public CharSequence nonLocalizedDescription

The description string provided in the AndroidManifest file, if any.

public int priority

Prioritization of this group, for visually sorting with other groups.

Inherited fields

Public constructors

PermissionGroupInfo()

This constructor is deprecated. Should only be created by the system.

PermissionGroupInfo(PermissionGroupInfo orig)

This constructor is deprecated. Should only be created by the system.

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

CharSequence loadDescription(PackageManager pm)

Retrieve the textual description of this permission.

String toString()

Returns a string representation of the object.

void writeToParcel(Parcel dest, int parcelableFlags)

Inherited methods

Constants

FLAG_PERSONAL_INFO

public static final int FLAG_PERSONAL_INFO

Flag for flags, corresponding to personalInfo value of R.attr.permissionGroupFlags.

Constant Value: 1 (0x00000001)

Fields

CREATOR

public static final Creator<PermissionGroupInfo> CREATOR

descriptionRes

public int descriptionRes

A string resource identifier (in the package's resources) of this permission's description. From the "description" attribute or, if not set, 0.

flags

public int flags

Additional flags about this group as given by R.attr.permissionGroupFlags.
Value is either 0 or FLAG_PERSONAL_INFO

nonLocalizedDescription

public CharSequence nonLocalizedDescription

The description string provided in the AndroidManifest file, if any. You probably don't want to use this, since it will be null if the description is in a resource. You probably want PermissionInfo#loadDescription instead.

priority

public int priority

Prioritization of this group, for visually sorting with other groups.

Public constructors

PermissionGroupInfo

public PermissionGroupInfo ()

This constructor is deprecated.
Should only be created by the system.

PermissionGroupInfo

public PermissionGroupInfo (PermissionGroupInfo orig)

This constructor is deprecated.
Should only be created by the system.

Parameters
orig PermissionGroupInfo: This value cannot be null.

Public methods

describeContents

public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR

loadDescription

public CharSequence loadDescription (PackageManager pm)

Retrieve the textual description of this permission. This will call back on the given PackageManager to load the description from the application.

Parameters
pm PackageManager: A PackageManager from which the label can be loaded; usually the PackageManager from which you originally retrieved this item. This value cannot be null.

Returns
CharSequence Returns a CharSequence containing the permission's description. If there is no description, null is returned.

toString

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
String a string representation of the object.

writeToParcel

public void writeToParcel (Parcel dest, 
                int parcelableFlags)

Parameters
dest Parcel

parcelableFlags int