提交 f0c893f6 编写于 作者: A Annie_wang

update docs

Signed-off-by: NAnnie_wang <annie.wangli@huawei.com>
上级 c74fc41a
...@@ -4,8 +4,8 @@ The **PermissionRequestResult** module defines the result of a permission reques ...@@ -4,8 +4,8 @@ The **PermissionRequestResult** module defines the result of a permission reques
> **NOTE** > **NOTE**
> >
> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. > - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
> The APIs of this module can be used only in the stage model. > - The APIs of this module can be used only in the stage model.
## Attributes ## Attributes
...@@ -14,7 +14,7 @@ The **PermissionRequestResult** module defines the result of a permission reques ...@@ -14,7 +14,7 @@ The **PermissionRequestResult** module defines the result of a permission reques
| Name| Type| Readable| Writable| Description| | Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| permissions | Array&lt;string&gt; | Yes| No| Permissions requested.| | permissions | Array&lt;string&gt; | Yes| No| Permissions requested.|
| authResults | Array&lt;number&gt; | 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 ## Usage
...@@ -36,5 +36,3 @@ try { ...@@ -36,5 +36,3 @@ try {
console.log(`catch err->${JSON.stringify(err)}`); console.log(`catch err->${JSON.stringify(err)}`);
} }
``` ```
<!--no_check-->
\ No newline at end of file
...@@ -76,7 +76,7 @@ Allows an application to read telephony information. ...@@ -76,7 +76,7 @@ Allows an application to read telephony information.
## ohos.permission.REQUIRE_FORM ## ohos.permission.REQUIRE_FORM
Allows an application to obtain widgets. Allows an application to obtain the Ability Form.
**Permission level**: system_basic **Permission level**: system_basic
...@@ -1144,6 +1144,8 @@ Allows an application to obtain the device location. ...@@ -1144,6 +1144,8 @@ Allows an application to obtain the device location.
**Enable via ACL**: TRUE **Enable via ACL**: TRUE
**Application conditions**: The applications developed using the SDK earlier than API version 9 can directly apply for this permission. For the applications developed using the SDK of API version 9 or later, you need to apply for [ohos.permission.APPROXIMATELY_LOCATION](#ohospermissionapproximately_location) before applying for this permission.
## ohos.permission.APPROXIMATELY_LOCATION ## ohos.permission.APPROXIMATELY_LOCATION
Allows an application to obtain the approximate location information of a device. Allows an application to obtain the approximate location information of a device.
...@@ -1154,9 +1156,11 @@ Allows an application to obtain the approximate location information of a device ...@@ -1154,9 +1156,11 @@ Allows an application to obtain the approximate location information of a device
**Enable via ACL**: FALSE **Enable via ACL**: FALSE
**Application conditions**: Only applications developed using the SDK of API version 9 or later can apply for this permission.
## ohos.permission.MEDIA_LOCATION ## ohos.permission.MEDIA_LOCATION
Allow an application to access geographical locations in the user's media file. Allows an application to access geographical locations in the user's media file.
**Permission level**: normal **Permission level**: normal
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册