mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 23:30:15 +00:00
edm指纹管控--查询与禁用指纹验证
Signed-off-by: Xilong <liuxilong4@huawei.com>
This commit is contained in:
parent
d3a384218d
commit
98d6c386cc
36
api/@ohos.enterprise.restrictions.d.ts
vendored
36
api/@ohos.enterprise.restrictions.d.ts
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user