mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 15:20:17 +00:00
commit
0c74291559
2
api/@ohos.privacyManager.d.ts
vendored
2
api/@ohos.privacyManager.d.ts
vendored
@ -299,7 +299,7 @@ declare namespace privacyManager {
|
||||
* @param { number } tokenId - Token ID of the application. By default, all token IDs of the device are returned.
|
||||
* @param { Permissions } permissionName - Name of the permission to query. By default, all permissions of the device are returned.
|
||||
* @returns { Promise<Array<PermissionUsedTypeInfo>> } Promise used to return the information obtained.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified; 2.Incorrect parameter types.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Incorrect parameter types.
|
||||
* @throws { BusinessError } 201 - Permission denied. Interface caller does not have permission "ohos.permission.PERMISSION_USED_STATS".
|
||||
* @throws { BusinessError } 202 - Not system app. Interface caller is not a system app.
|
||||
* @throws { BusinessError } 12100001 - Invalid Parameter. PermissionName exceeds 256 characters.
|
||||
|
Loading…
Reference in New Issue
Block a user