新聞中心
這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
創(chuàng)新互聯(lián)小程序教程:微信小程序API 生物認(rèn)證
wx.checkIsSupportSoterAuthentication(OBJECT)
基礎(chǔ)庫(kù) 1.5.0 開始支持,低版本需做 兼容處理
獲取本機(jī)支持的 SOTER 生物認(rèn)證方式
Object參數(shù)說明:
| 參數(shù) | 類型 | 必填 | 說明 |
|---|---|---|---|
| success | Function | 否 | 接口調(diào)用成功的回調(diào)函數(shù) |
| fail | Function | 否 | 接口調(diào)用失敗的回調(diào)函數(shù) |
| complete | Function | 否 | 接口調(diào)用結(jié)束的回調(diào)函數(shù)(調(diào)用成功、失敗都會(huì)執(zhí)行) |
success返回參數(shù)說明:
| 參數(shù)名 | 類型 | 說明 |
|---|---|---|
| supportMode | StringArray | 該設(shè)備支持的可被SOTER識(shí)別的生物識(shí)別方式 |
| errMsg | String | 接口調(diào)用結(jié)果 |
supportMode 有效值:
| 值 | 說明 |
|---|---|
| fingerPrint | 指紋識(shí)別 |
| facial | 人臉識(shí)別(暫未支持) |
| speech | 聲紋識(shí)別(暫未支持) |
示例代碼:
wx.checkIsSupportSoterAuthentication({
success(res) {
// res.supportMode = [] 不具備任何被SOTER支持的生物識(shí)別方式
// res.supportMode = ['fingerPrint'] 只支持指紋識(shí)別
// res.supportMode = ['fingerPrint', 'facial'] 支持指紋識(shí)別和人臉識(shí)別
}
}) 文章題目:創(chuàng)新互聯(lián)小程序教程:微信小程序API 生物認(rèn)證
本文URL:http://www.5511xx.com/article/dpchgco.html


咨詢
建站咨詢

