Skip to content

Instantly share code, notes, and snippets.

@zukopvd
Created January 29, 2018 09:10
Show Gist options
  • Save zukopvd/fda7446dea2eca1943970e689dbb6ccb to your computer and use it in GitHub Desktop.
Save zukopvd/fda7446dea2eca1943970e689dbb6ccb to your computer and use it in GitHub Desktop.
Fingerprint AuthenticationCallback description
override fun onAuthenticationError(errorCode: Int, errString: CharSequence?) {
//scanning completed with unknown error
}
override fun onAuthenticationSucceeded(result: FingerprintManager.AuthenticationResult?) {
//scanning was successful and has match with one of registered on the device fingerprints
}
override fun onAuthenticationHelp(helpCode: Int, helpString: CharSequence?) {
//case when scanning was failed because of known reason (limit of scan attempts or dirt on the scanner's sensor).
//helpString contains a hint for the user to let him know what happened
}
override fun onAuthenticationFailed() {
//scanning was successful but it's result doesn't match with any of registered fingerprints
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment