Skip to content

Instantly share code, notes, and snippets.

@husaynhakeem
Last active September 10, 2020 04:42
Show Gist options
  • Save husaynhakeem/cfcec0a510aac355fe92a20f451bb20d to your computer and use it in GitHub Desktop.
Save husaynhakeem/cfcec0a510aac355fe92a20f451bb20d to your computer and use it in GitHub Desktop.
val biometricManager = BiometricManager.from(context)
val canAuthenticate = biometricManager.canAuthenticate()
if (canAuthenticate == BIOMETRIC_SUCCESS) {
// The device supports biometric authentication
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment