From a1f00a5954b39f487356f222cb1bffcf277c3505 Mon Sep 17 00:00:00 2001 From: wuliushuan Date: Fri, 26 Jul 2024 02:41:58 +0000 Subject: [PATCH] =?UTF-8?q?requestPermissionOnSetting=20=E5=BD=A2=E5=8F=82?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuliushuan Change-Id: Id3e0ebb9e3cfc367f3e89262af672b3241509bda --- api/@ohos.abilityAccessCtrl.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/@ohos.abilityAccessCtrl.d.ts b/api/@ohos.abilityAccessCtrl.d.ts index 563b13cdb..cefab32ec 100644 --- a/api/@ohos.abilityAccessCtrl.d.ts +++ b/api/@ohos.abilityAccessCtrl.d.ts @@ -536,7 +536,7 @@ declare namespace abilityAccessCtrl { * * @param { Context } context - The context that initiates the permission request. *
The context must belong to the Stage model and only supports UIAbilityContext and UIExtensionContext. - * @param { Array } permissionNameList - Indicates the list of permission to be requested. This parameter cannot be null or empty. + * @param { Array } permissionList - Indicates the list of permission to be requested. This parameter cannot be null or empty. * @returns { Promise> } 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): Promise>; + requestPermissionOnSetting(context: Context, permissionList: Array): Promise>; /** * Requests certain global switch status on setting from the user.