更新记录
1.0.0(2024-03-22) 下载此版本
支持error,success,fail回调; 支持设置标题、子标题和拒绝按钮文本
平台兼容性
uni-app x
Chrome | Safari | Android | iOS | 鸿蒙 | 微信小程序 |
---|---|---|---|---|---|
- | - | 5.0 | × | - | × |
使用手册
<template>
<view>
<button @click="handleClick">生物识别</button>
</view>
</template>
<script>
import { biometric } from '@/uni_modules/xq-biometric'
import { GetBiometricInfoOptions } from '@/uni_modules/xq-biometric/utssdk/app-android/interface.uts'
export default {
data() {
return {
}
},
methods: {
handleClick() {
biometric({
success: (res) => {
console.log(res)
},
title: "标题",
subTitle: '子标题',
negativeButtonText: '拒绝'
} as GetBiometricInfoOptions)
}
}
}
</script>
<style>
</style>
提示:需要使用自定义基座
功能:支持error、fail、success回调, 支持设置标题、子标题和拒绝按钮文本