diff --git a/api/@ohos.enterprise.restrictions.d.ts b/api/@ohos.enterprise.restrictions.d.ts index d44eb082e..e09497e16 100644 --- a/api/@ohos.enterprise.restrictions.d.ts +++ b/api/@ohos.enterprise.restrictions.d.ts @@ -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;