Created
January 25, 2022 16:15
-
-
Save Jaosrikate/41eac98129ef1091afc4d929719669df to your computer and use it in GitHub Desktop.
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
private fun buildBiometricPrompt(): BiometricPrompt.PromptInfo { | |
return BiometricPrompt.PromptInfo.Builder() | |
.setTitle(getString(R.string.bio_authen_title)) | |
.setDescription(getString(R.string.bio_authen_description)) | |
.setNegativeButtonText(getString(R.string.bio_authen_negative_button)) | |
.setConfirmationRequired(false) //Allows user to authenticate without performing an action, such as pressing a button, after their biometric credential is accepted. | |
.setAllowedAuthenticators(BIOMETRIC_STRONG) | |
.build() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment