PermissionGroupInfo
open class PermissionGroupInfo : PackageItemInfo, Parcelable
| kotlin.Any | ||
| ↳ | 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 | |
|---|---|
| static Int | 
            
             Flag for   | 
        
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| open Int | |
| open CharSequence? | 
            
             Retrieve the textual description of this permission.  | 
        
| open String | 
            toString() | 
        
| open Unit | 
            writeToParcel(dest: Parcel, parcelableFlags: Int) | 
        
| Inherited functions | |
|---|---|
| Properties | |
|---|---|
| static Parcelable.Creator<PermissionGroupInfo!> | |
| Int | 
            
             A string resource identifier (in the package's resources) of this permission's description.  | 
        
| Int | 
            
             Additional flags about this group as given by   | 
        
| CharSequence? | 
            
             The description string provided in the AndroidManifest file, if any.  | 
        
| Int | 
            
             Prioritization of this group, for visually sorting with other groups.  | 
        
| Inherited properties | |
|---|---|
Constants
FLAG_PERSONAL_INFO
static val FLAG_PERSONAL_INFO: Int
Flag for flags, corresponding to personalInfo value of android.R.attr#permissionGroupFlags.
Value: 1Public constructors
PermissionGroupInfo
PermissionGroupInfo()
Deprecated: Should only be created by the system.
PermissionGroupInfo
PermissionGroupInfo(orig: PermissionGroupInfo)
Deprecated: Should only be created by the system.
| Parameters | |
|---|---|
orig | 
            PermissionGroupInfo: This value cannot be null. | 
          
Public methods
describeContents
open fun describeContents(): Int
| Return | |
|---|---|
Int | 
            a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
          
loadDescription
open fun loadDescription(pm: PackageManager): CharSequence?
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. | 
          
| Return | |
|---|---|
CharSequence? | 
            Returns a CharSequence containing the permission's description. If there is no description, null is returned. | 
toString
open fun toString(): String
| Return | |
|---|---|
String | 
            a string representation of the object. | 
writeToParcel
open fun writeToParcel(
dest: Parcel,
parcelableFlags: Int
): Unit
| Parameters | |
|---|---|
dest | 
            Parcel: The Parcel in which the object should be written. This value cannot be null. | 
          
flags | 
            Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
          
Properties
descriptionRes
var descriptionRes: Int
A string resource identifier (in the package's resources) of this permission's description. From the "description" attribute or, if not set, 0.
flags
var flags: Int
Additional flags about this group as given by android.R.attr#permissionGroupFlags. 
 Value is either 0 or android.content.pm.PermissionGroupInfo#FLAG_PERSONAL_INFO
nonLocalizedDescription
var nonLocalizedDescription: CharSequence?
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
var priority: Int
Prioritization of this group, for visually sorting with other groups.