# wx.checkIsSoterEnrolledInDevice(Object object)
Start from base library version 1.6.0. Please remaining backward compatible.
with Promise style call: Supported
Mini Program plugin: Not supported
Interface to obtain whether biometric information such as fingerprints is recorded in the device
# parameter
# Object object
| attribute | type | Default values | Required | Introductions |
|---|---|---|---|---|
| checkAuthMode | string | yes | Authentication mode | |
| success | function | no | Interface calls the successful callback function | |
| fail | function | no | Interface calls failed callback functions | |
| complete | function | no | Interface calls the end of the callback function (call success or failure will be executed) |
object.checkAuthMode Legal value
| value | Introductions | Minimum version |
|---|---|---|
| fingerPrint | Fingerprint identification | |
| facial | Face recognition | |
| speech | Voiceprint recognition (not yet supported) |
# object.success callback
# parameter
# Object res
| attribute | type | Introductions |
|---|---|---|
| isEnrolled | boolean | Has information been entered? |
| errMsg | string | Error message |
# sample code
wx.checkIsSoterEnrolledInDevice({
checkAuthMode: 'fingerPrint',
success(res) {
console.log(res.isEnrolled)
}
})