From 4ab74eb0e42c80ba13d1b81a20c950e61b067e66 Mon Sep 17 00:00:00 2001 From: jerry Date: Thu, 30 Nov 2023 12:11:56 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90EDM=E3=80=914.1=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=BA=A6=E5=85=8B=E9=A3=8E=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jerry Change-Id: I005fc4ef0e07f748a788f15961f245fd273f6dc0 --- api/@ohos.enterprise.restrictions.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/api/@ohos.enterprise.restrictions.d.ts b/api/@ohos.enterprise.restrictions.d.ts index bf473edda..7b4471600 100644 --- a/api/@ohos.enterprise.restrictions.d.ts +++ b/api/@ohos.enterprise.restrictions.d.ts @@ -182,11 +182,11 @@ declare namespace restrictions { function isHdcDisabled(admin: Want): Promise; /** - * Disallows the microphone of device. + * Disables the microphone of device. * * @permission ohos.permission.ENTERPRISE_MANAGE_RESTRICTIONS * @param { Want } admin - admin indicates the administrator ability information. - * @param { boolean } disallow - true if disallow the microphone of device, otherwise false. + * @param { boolean } disable - true if disable the microphone of device, otherwise false. * @throws { BusinessError } 9200001 - the application is not an administrator of the device. * @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - the application does not have permission to call this function. @@ -197,14 +197,14 @@ declare namespace restrictions { * @stagemodelonly * @since 11 */ - function disallowMicrophone(admin: Want, disallow: boolean): void; + function disableMicrophone(admin: Want, disable: boolean): void; /** - * Queries whether the microphone of device is disallowed. + * Queries whether the microphone of device is disabled. * * @permission ohos.permission.ENTERPRISE_MANAGE_RESTRICTIONS * @param { Want } admin - admin indicates the administrator ability information. - * @returns { boolean } true if the microphone of device is disallowed, otherwise false. + * @returns { boolean } true if the microphone of device is disabled, otherwise false. * @throws { BusinessError } 9200001 - the application is not an administrator of the device. * @throws { BusinessError } 9200002 - the administrator application does not have permission to manage the device. * @throws { BusinessError } 201 - the application does not have permission to call this function. @@ -215,7 +215,7 @@ declare namespace restrictions { * @stagemodelonly * @since 11 */ - function isMicrophoneDisallowed(admin: Want): boolean; + function isMicrophoneDisabled(admin: Want): boolean; } export default restrictions;