js-apis-permissionrequestresult.md 777 字节
Newer Older
1 2
# PermissionRequestResult

W
wusongqing 已提交
3 4
> **NOTE**
>
5 6 7 8
> The initial APIs of this module are supported since API 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.

Provides the permission request result.

W
wusongqing 已提交
9 10 11 12 13 14
## Modules to Import

```js
import Ability from '@ohos.application.Ability'
```

15 16 17 18 19

## Attributes

**System capability**: SystemCapability.Ability.AbilityRuntime.Core

W
wusongqing 已提交
20
| Name| Type| Readable| Writable| Description|
21
| -------- | -------- | -------- | -------- | -------- |
W
wusongqing 已提交
22 23
| permissions | Array<string> | Yes| No| Permissions requested.|
| authResults | Array<number> | Yes| No| Whether the requested permissions are granted or denied. The value **0** means that the requests permissions are granted, and **-1** means the opposite. |