@@ -4,8 +4,8 @@ The **PermissionRequestResult** module defines the result of a permission reques
> **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 APIs of this module can be used only in the stage model.
> - 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.
## Attributes
...
...
@@ -14,7 +14,7 @@ The **PermissionRequestResult** module defines the result of a permission reques
| 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<number> | 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).|
@@ -76,7 +76,7 @@ Allows an application to read telephony information.
## ohos.permission.REQUIRE_FORM
Allows an application to obtain widgets.
Allows an application to obtain the Ability Form.
**Permission level**: system_basic
...
...
@@ -1144,6 +1144,8 @@ Allows an application to obtain the device location.
**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
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
**Application conditions**: Only applications developed using the SDK of API version 9 or later can apply for this permission.
## 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.