edm指纹管控--查询与禁用指纹验证

Signed-off-by: Xilong <liuxilong4@huawei.com>
This commit is contained in:
Xilong Liu 2023-12-06 00:26:36 +08:00
parent d3a384218d
commit 98d6c386cc

View File

@ -216,6 +216,42 @@ declare namespace restrictions {
* @since 11
*/
function isMicrophoneDisabled(admin: Want): boolean;
/**
* Disallows device fingerprint authorization capability.
*
* @permission ohos.permission.ENTERPRISE_MANAGE_RESTRICTIONS
* @param { Want } admin - admin indicates the administrator ability information.
* @param { boolean } disable - true if the fingerprint authorization capability is disallowed.
* @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.
* @throws { BusinessError } 202 - not system application.
* @throws { BusinessError } 401 - invalid input parameter.
* @syscap SystemCapability.Customization.EnterpriseDeviceManager
* @systemapi
* @stagemodelonly
* @since 11
*/
function disableFingerprintAuth(admin: Want, disable: boolean): void;
/**
* Queries device fingerprint authorization capablity is disallowed or allowed.
*
* @permission ohos.permission.ENTERPRISE_MANAGE_RESTRICTIONS
* @param { Want } admin - admin indicates the administrator ability information.
* @returns { boolean } true if the fingerprint authorization capability is disallowed.
* @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.
* @throws { BusinessError } 202 - not system application.
* @throws { BusinessError } 401 - invalid input parameter.
* @syscap SystemCapability.Customization.EnterpriseDeviceManager
* @systemapi
* @stagemodelonly
* @since 11
*/
function isFingerprintAuthDisabled(admin: Want): boolean;
}
export default restrictions;