Skip to content

Instantly share code, notes, and snippets.

@isaidamier
Last active April 13, 2020 18:46
Show Gist options
  • Save isaidamier/c9eca9eb3db9ef86195e92e56b93fffe to your computer and use it in GitHub Desktop.
Save isaidamier/c9eca9eb3db9ef86195e92e56b93fffe to your computer and use it in GitHub Desktop.
BiometricPrompt.ERROR_USER_CANCELED
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