android.content.pm
Class PermissionGroupInfo
java.lang.Object
android.content.pm.PackageItemInfo
android.content.pm.PermissionGroupInfo
- All Implemented Interfaces:
- Parcelable
public class PermissionGroupInfo
- extends PackageItemInfo
- implements Parcelable
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.
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.
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(android.content.pm.PackageManager) instead.
CREATOR
public static final Parcelable.Creator<PermissionGroupInfo> CREATOR
PermissionGroupInfo
public PermissionGroupInfo()
PermissionGroupInfo
public PermissionGroupInfo(PermissionGroupInfo orig)
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 - A PackageManager from which the label can be loaded; usually
the PackageManager from which you originally retrieved this item.
- Returns:
- Returns a CharSequence containing the permission's description.
If there is no description, null is returned.
toString
public String toString()
- Description copied from class:
Object
- Returns a string containing a concise, human-readable description of the
receiver.
- Overrides:
toString in class Object
- Returns:
- String a printable representation for the receiver.
describeContents
public int describeContents()
- Description copied from interface:
Parcelable
- Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
- Specified by:
describeContents in interface Parcelable
- Returns:
- a bitmask indicating the set of special object types marshalled
by the Parcelable.
writeToParcel
public void writeToParcel(Parcel dest,
int parcelableFlags)
- Description copied from interface:
Parcelable
- Flatten this object in to a Parcel.
- Specified by:
writeToParcel in interface Parcelable- Overrides:
writeToParcel in class PackageItemInfo
- Parameters:
dest - The Parcel in which the object should be written.parcelableFlags - Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
Please submit a feedback, bug or feature