• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# PermissionDef (System API)
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9The module provides permission details defined in the configuration file.
10
11> **NOTE**
12>
13> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
14>
15> The APIs of this module are deprecated since API version 9. You are advised to use [bundleManager-PermissionDef](js-apis-bundleManager-permissionDef-sys.md) instead.
16>
17> The APIs provided by this module are system APIs.
18
19## **PermissionDef**<sup>(deprecated)<sup>
20
21This API is deprecated since API version 9. You are advised to use [bundleManager-PermissionDef](js-apis-bundleManager-permissionDef-sys.md#permissiondef) instead.
22
23**System capability**: SystemCapability.BundleManager.BundleFramework
24
25**System API**: This is a system API.
26
27| Name          | Type  | Read-Only| Optional| Description          |
28| -------------- | ------ | ---- | ---- | -------------- |
29| permissionName | string | No  | No  | Name of the permission.  |
30| grantMode      | number | No  | No  | Grant mode of the permission. The value **0** means that the system automatically grants the permission after the application installation, and **1** means that the application needs to dynamically request the permission from the user.|
31| labelId        | number | No  | No  | ID of the permission label.  |
32| descriptionId  | number | No  | No  | ID of the permission description.  |
33