Last active
April 13, 2020 18:46
-
-
Save isaidamier/c9eca9eb3db9ef86195e92e56b93fffe to your computer and use it in GitHub Desktop.
BiometricPrompt.ERROR_USER_CANCELED
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) { | |
super.onAuthenticationError(errorCode, errString) | |
Log.d(TAG, "$errorCode :: $errString") | |
if (errorCode == BiometricPrompt.ERROR_USER_CANCELED) { | |
handleUserCancelation() // this is your custom function | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment