requestPermissionOnSetting 形参修改

Signed-off-by: wuliushuan <wuliushuan.30044128@huawei.com>
Change-Id: Id3e0ebb9e3cfc367f3e89262af672b3241509bda
This commit is contained in:
wuliushuan 2024-07-26 02:41:58 +00:00
parent da630260b4
commit a1f00a5954

View File

@ -536,7 +536,7 @@ declare namespace abilityAccessCtrl {
*
* @param { Context } context - The context that initiates the permission request.
* <br> The context must belong to the Stage model and only supports UIAbilityContext and UIExtensionContext.
* @param { Array<Permissions> } permissionNameList - Indicates the list of permission to be requested. This parameter cannot be null or empty.
* @param { Array<Permissions> } permissionList - Indicates the list of permission to be requested. This parameter cannot be null or empty.
* @returns { Promise<Array<GrantStatus>> } Returns the list of status of the specified permission.
* @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.
* @throws { BusinessError } 12100001 - Invalid parameter. Possible causes: 1. The context is invalid because it does not belong to the application itself;
@ -549,7 +549,7 @@ declare namespace abilityAccessCtrl {
* @atomicservice
* @since 12
*/
requestPermissionOnSetting(context: Context, permissionNameList: Array<Permissions>): Promise<Array<GrantStatus>>;
requestPermissionOnSetting(context: Context, permissionList: Array<Permissions>): Promise<Array<GrantStatus>>;
/**
* Requests certain global switch status on setting from the user.