Sequenceablepublic class PermissionGroupDef extends Object implements Sequenceable
def-permissiongroups tag in the
ohos.profiles file.Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
int |
descriptionRes |
A string resource identifier (in the package's resources) of this
permissionGroup's detailed description.
|
int |
iconRes |
A string resource identifier (in the package's resources) of this
permissionGroup's icon.
|
int |
labelRes |
A string resource identifier (in the package's resources) of this
permissionGroup's brief description.
|
String |
name |
The name of this permission group.
|
int |
order |
The priority of permission group, used for sorting when the UI displays permission
groups, 0 is the first, 10000 is the last.
|
int |
requestRes |
A string resource identifier (in the package's resources) of interrogation when
the application dynamically requests permission from the user.
|
| 构造器 | 说明 |
|---|---|
PermissionGroupDef() |
A constructor used to create a
PermissionGroupDef instance. |
PermissionGroupDef(PermissionGroupDef orig) |
A constructor used to create a
PermissionGroupDef instance using an existing
PermissionGroupDef instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
marshalling(Parcel out) |
Marshals a
PermissionGroupDef object into a Parcel object. |
boolean |
unmarshalling(Parcel in) |
Unmarshals a
PermissionGroupDef object from a Parcel object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic int descriptionRes
public int iconRes
public int labelRes
public String name
public int order
public int requestRes
public PermissionGroupDef()
PermissionGroupDef instance.
The PermissionGroupDef instance is initialized.
public PermissionGroupDef(PermissionGroupDef orig)
PermissionGroupDef instance using an existing
PermissionGroupDef instance.orig - Indicates the existing PermissionGroupDef instance.public boolean marshalling(Parcel out)
PermissionGroupDef object into a Parcel object.marshalling 在接口中 Sequenceableout - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
PermissionGroupDef object from a Parcel object.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.