【EDM】4.1新增麦克风策略

Signed-off-by: jerry <ganrui3@huawei.com>
Change-Id: I005fc4ef0e07f748a788f15961f245fd273f6dc0
This commit is contained in:
jerry 2023-11-30 12:11:56 +08:00
parent e73cec4366
commit 4ab74eb0e4

View File

@ -182,11 +182,11 @@ declare namespace restrictions {
function isHdcDisabled(admin: Want): Promise<boolean>;
/**
* 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;