未验证 提交 51dec222 编写于 作者: O openharmony_ci 提交者: Gitee

!15419 [翻译完成】#I6FMMC (14720+14542+14907+15070)

Merge pull request !15419 from Annie_wang/PR14721
......@@ -14,7 +14,7 @@ The **PermissionRequestResult** module defines the result of a permission reques
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
| permissions | Array<string> | Yes| No| Permissions requested.|
| authResults | Array<number> | Yes| No| Whether the requested permissions are granted. The value **0** means that the requests permissions are granted, and a non-zero value means the opposite.|
| authResults | Array&lt;number&gt; | Yes| No|Resule of the permission Request.<br>**-1**: The permission has been set and no dialog box will be displayed. Users can modify the permission in **Settings**.<br>**0**: No operation is required.<br>**1**: Dynamic user authorization is required via a dialog window .<br>**2**: The request is invalid. Possible causes are as follows:<br>- The permission is not declared in the configuration file.<br>- The permission name is invalid.<br>- Special conditions for applying for the permission do not satisfied. See [ohos.permission.LOCATION](../../security/permission-list.md#ohospermissionlocation) and [ohos.permission.APPROXIMATELY_LOCATION](../../security/permission-list.md#ohospermissionapproximately_location).|
## Usage
......@@ -36,5 +36,3 @@ try {
console.log(`catch err->${JSON.stringify(err)}`);
}
```
<!--no_check-->
\ No newline at end of file
......@@ -1498,6 +1498,26 @@ Allows an application to to access the Ability of the push service.
**Enable via ACL**: TRUE
## ohos.permission.READ_APP_PUSH_DATA
Allows the push service to read data from an application.
**Permission level**: system_basic
**Authorization mode**: system_grant
**Enable ACL**: FALSE
## ohos.permission.WRITE_APP_PUSH_DATA
Allows the push service to write data to an application.
**Permission level**: system_basic
**Authorization mode**: system_grant
**Enable ACL**: FALSE
## ohos.permission.RECEIVER_STARTUP_COMPLETED
Allows an application to subscribe to the startup broadcast.
......@@ -1667,3 +1687,33 @@ Allows an application to call the system API of the lock screen service.
**Authorization mode**: system_grant
**Enable ACL**: FALSE
## ohos.permission.PRINT
Allows an application to obtain the print framework capability.
**Permission level**: normal
**Authorization mode**: system_grant
**Enable via ACL**: TRUE
## ohos.permission.MANAGE_PRINT_JOB
Allows an application to obtain the capability of managing print tasks.
**Permission level**: system_basic
**Authorization mode**: system_grant
**Enable via ACL**: TRUE
## ohos.permission.CHANGE_OVERLAY_ENABLED_STATE
Allows a system application to disable the application with the overlay feature enabled.
**Permission level**: system_basic
**Authorization mode**: system_grant
**Enable via ACL**: TRUE
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册