Skip to content

Most visited

Recently visited

navigation
Added in API level 1

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 permissionGroupFlags.

Inherited constants

From interface android.os.Parcelable

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 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

From class android.content.pm.PackageItemInfo

Public constructors

PermissionGroupInfo()
PermissionGroupInfo(PermissionGroupInfo orig)

Public methods

int describeContents()

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

CharSequence loadDescription(PackageManager pm)

Retrieve the textual description of this permission.

String toString()

Returns a string containing a concise, human-readable description of this object.

void writeToParcel(Parcel dest, int parcelableFlags)

Inherited methods

From class android.content.pm.PackageItemInfo
From class java.lang.Object
From interface android.os.Parcelable

Constants

FLAG_PERSONAL_INFO

Added in API level 17
int FLAG_PERSONAL_INFO

Flag for flags, corresponding to personalInfo value of permissionGroupFlags.

Constant Value: 1 (0x00000001)

Fields

CREATOR

Added in API level 1
Creator<PermissionGroupInfo> CREATOR

descriptionRes

Added in API level 1
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

Added in API level 17
int flags

Additional flags about this group as given by permissionGroupFlags.

nonLocalizedDescription

Added in API level 1
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 loadDescription(PackageManager) instead.

priority

Added in API level 17
int priority

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

Public constructors

PermissionGroupInfo

Added in API level 1
PermissionGroupInfo ()

PermissionGroupInfo

Added in API level 1
PermissionGroupInfo (PermissionGroupInfo orig)

Parameters
orig PermissionGroupInfo

Public methods

describeContents

Added in API level 1
int describeContents ()

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

Returns
int a bitmask indicating the set of special object types marshalled by the Parcelable.

loadDescription

Added in API level 1
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.
Returns
CharSequence Returns a CharSequence containing the permission's description. If there is no description, null is returned.

toString

Added in API level 1
String toString ()

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:

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

See Writing a useful toString method if you intend implementing your own toString method.

Returns
String a printable representation of this object.

writeToParcel

Added in API level 1
void writeToParcel (Parcel dest, 
                int parcelableFlags)

Parameters
dest Parcel
parcelableFlags int
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.