未验证 提交 c1eb6ec8 编写于 作者: O openharmony_ci 提交者: Gitee

!23803 【用户IAM】deprecated接口ArkTs整改

Merge pull request !23803 from liuziwei/master
......@@ -72,12 +72,12 @@ setSurfaceId(surfaceId: string): void;
import userIAM_faceAuth from '@ohos.userIAM.faceAuth';
// 该surfaceId应该从XComponent控件获取,此处仅用作示例。
let surfaceId = "123456";
let surfaceId = '123456';
let manager = new userIAM_faceAuth.FaceAuthManager();
try {
manager.setSurfaceId(surfaceId);
console.info("set surface id success");
manager.setSurfaceId(surfaceId);
console.info('set surface id success');
} catch (e) {
console.error("set surface id failed, error = " + e);
console.error('set surface id failed, error = ' + e);
}
```
......@@ -48,9 +48,9 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
// 查询认证能力是否支持
try {
userIAM_userAuth.getAvailableStatus(userIAM_userAuth.UserAuthType.FACE, userIAM_userAuth.AuthTrustLevel.ATL1);
console.info("current auth trust level is supported");
console.info('current auth trust level is supported');
} catch (error) {
console.info("current auth trust level is not supported, error = " + error);
console.info('current auth trust level is not supported, error = ' + error);
}
```
......@@ -79,7 +79,6 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
const widgetParam : userIAM_userAuth.WidgetParam = {
title: '请输入密码',
navigationButtonText: '返回',
windowMode: userIAM_userAuth.WindowModeType.DIALOG_BOX,
};
try {
//获取认证对象
......@@ -129,7 +128,6 @@ userIAM_userAuth模块提供了用户认证的相关方法,包括查询认证
const widgetParam : userIAM_userAuth.WidgetParam = {
title: '请输入密码',
navigationButtonText: '返回',
windowMode: userIAM_userAuth.WindowModeType.DIALOG_BOX,
};
try {
//获取认证对象
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册