Skip to content

Instantly share code, notes, and snippets.

@dinorahto
Last active July 26, 2020 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dinorahto/3cda4eda0ace9c5ced169ad6572b6ed8 to your computer and use it in GitHub Desktop.
Save dinorahto/3cda4eda0ace9c5ced169ad6572b6ed8 to your computer and use it in GitHub Desktop.
var biometricPrompt = BiometricPrompt(this, executor, object : BiometricPrompt.AuthenticationCallback() {
override fun onAuthenticationError(errorCode: Int, errString: CharSequence) {
super.onAuthenticationError(errorCode, errString)
// Error
}
override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult) {
super.onAuthenticationSucceeded(result)
// Success
}
override fun onAuthenticationFailed() {
super.onAuthenticationFailed()
// Failed
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment