Skip to content

Instantly share code, notes, and snippets.

@husaynhakeem
Created September 10, 2020 04:59
Show Gist options
  • Save husaynhakeem/3c28e8d2d38c9b703b4cc5a3967caa6e to your computer and use it in GitHub Desktop.
Save husaynhakeem/3c28e8d2d38c9b703b4cc5a3967caa6e to your computer and use it in GitHub Desktop.
Pre-Android R Android R and above
Check if biometric authentication is supported BiometricsManager.canAuthenticate() BiometricsManager.canAuthenticate(authenticators)
Define allowed authenticators PromptInfo.Builder.setDeviceCredentialAllowed(boolean) PromptInfo.Builder.setAllowedAuthenticators(authenticators)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment