HarmonyOS 用户认证模块订阅指纹识别结果的时候,无法得到中间状态的结果

import userAuth from '@ohos.userIAM.userAuth';

const authParam : userAuth.AuthParam = {
  challenge: new Uint8Array([49, 49, 49, 49, 49, 49]),
  authType: [userAuth.UserAuthType.FINGERPRIN],
  authTrustLevel: userAuth.AuthTrustLevel.ATL2,
};
const widgetParam :userAuth.WidgetParam = {
  title: '请输入密码',
};
try {
  let userAuthInstance = userAuth.getUserAuthInstance(authParam, widgetParam);
  userAuthInstance.start();
  userAuthInstance.on('result', {
    onResult(result) {
      console.log('userAuthInstance callback result = ' + JSON.stringify(result));
    }
  });
} catch (error) {
  console.error('auth catch error: ' + JSON.stringify(error));
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
HarmonyOS
2024-12-20 13:37:31
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
FengTianYa

控件交互是连续的,最后一定是控件退出12500003或者其它退出,12500001是中间错误,当前不会返回 控件拉起后,中间结果,只体现在控件上,认证结束(成功,或者异常失败,或者退出)才会有北向返回

分享
微博
QQ
微信
回复
2024-12-20 15:53:15
相关问题
ArkTS import导入napi模块结果错误
3523浏览 • 0回复 待解决
安装hb时候,输入hb -h结果如下
8529浏览 • 2回复 待解决
HarmonyOS getParamByName结果类型转换
771浏览 • 1回复 待解决
HarmonyOS 关于http请求返回结果
961浏览 • 1回复 待解决
HarmonyOS 用户认证
739浏览 • 1回复 待解决