LightSDK.native.supportedVerifyOperation

功能描述

获取本机支持的本地认证方式

支持格式

JSON

请求参数:

字段 类型及范围 默认值 必填 说明
- - - - -

请求调用示例

LightSDK.native.supportedVerifyOperation({

}, function (res) {
console.log(JSON.stringify(res))
})

返回值说明

字段名 类型 说明
supportMode Array.<string> 该设备支持的本地授权认证方式

supportMode 的合法值

说明 最低版本
gesture 手势识别
fingerPrint 指纹识别
facial 人脸识别(Android暂不支持)

返回字段示例

{
"info": {
"error_code": "0",
"error_message": "success"
},
"data": {
"supportMode": [
"fingerPrint"
]
}
}

注意事项

需要在config.js配置文件中做以下配置:

module.exports = {
plugins: {
"localauth": {

}
}
};