@capgo/capacitor-native-biometric
该插件为 Android 和 iOS 提供原生生物识别 API
核心功能
核心功能标题- 检查生物识别认证硬件是否可用。
- 向用户提示使用生物识别进行认证。
- 获取给定服务器的存储凭据。isAvailable- 为给定服务器存储给定的凭据。verifyIdentity公共__CAPGO_KEEP_0__getCredentials公共__CAPGO_KEEP_0__标题"]}setCredentialspublic__CAPGO_KEEP_0__
publicAPI标题"]}
publicAPI| 方法 | 描述 |
|---|---|
isAvailable | 检测生物识别硬件是否可用。 |
addListener | 添加一个监听器,当应用程序从后台恢复时会被调用。这对于检测应用程序在后台期间生物识别可用性是否发生了变化(例如,用户注册/注销生物识别)非常有用。 |
verifyIdentity | 提示用户使用生物识别进行身份验证。 |
getCredentials | 获取给定服务器的存储凭据。 |
setCredentials | 为给定服务器存储指定的凭据。 |
deleteCredentials | 删除给定服务器的存储凭据。 |
getSecureCredentials | 获取给定服务器的存储凭据,需要生物识别身份验证。凭据必须已设置为BIOMETRY_CURRENT_SET或BIOMETRY_ANY。 |
isCredentialsSaved | 检测是否已为给定服务器保存凭据。 |
getPluginVersion | 获取本机Capacitor插件版本。 |
This reference is synced from src/definitions.ts 在 capacitor-native-biometric.
Keep going from @capgo/capacitor-native-biometric
Section titled “Keep going from @capgo/capacitor-native-biometric”如果您正在使用 @capgo/capacitor-native-biometric 来规划身份验证和帐户流程,连接它到 使用 @capgo/capacitor-native-biometric 为在使用 @capgo/capacitor-native-biometric 中的原生能力 @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, 双因素认证 for the implementation detail in 双因素认证, and 企业SSO for the implementation detail in 企业SSO。