Skip to content

Instantly share code, notes, and snippets.

@husaynhakeem
Last active September 10, 2020 04:41
Show Gist options
  • Save husaynhakeem/ff95bffd19259d79af5c390776971ffb to your computer and use it in GitHub Desktop.
Save husaynhakeem/ff95bffd19259d79af5c390776971ffb to your computer and use it in GitHub Desktop.
val authenticationCallback = object : BiometricPrompt.AuthenticationCallback() {
override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult) {
// Authentication succeeded
}
override fun onAuthenticationError(errorCode: Int, errString: CharSequence) {
// Authentication errored out. Verify error code and message
}
override fun onAuthenticationFailed() {
// Authentication failed. User may not have been recognized
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment