Skip to content

Instantly share code, notes, and snippets.

@Iltwats
Created May 23, 2021 18:05
Show Gist options
  • Save Iltwats/523941235962a99e94d023079b765a44 to your computer and use it in GitHub Desktop.
Save Iltwats/523941235962a99e94d023079b765a44 to your computer and use it in GitHub Desktop.
BiometricPrompt.PromptInfo promptInfo = new BiometricPrompt.PromptInfo.Builder()
.setTitle(getString(R.string.biometric_title))
.setSubtitle(getString(R.string.biometric_subtitle))
.setDescription(getString(R.string.biometric_desc))
.setAllowedAuthenticators(BiometricManager.Authenticators.BIOMETRIC_WEAK | BiometricManager.Authenticators.DEVICE_CREDENTIAL)
.setConfirmationRequired(false)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment