Created
January 29, 2018 09:10
-
-
Save zukopvd/fda7446dea2eca1943970e689dbb6ccb to your computer and use it in GitHub Desktop.
Fingerprint AuthenticationCallback description
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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