Skip to content

Instantly share code, notes, and snippets.

@flschweiger
Last active October 29, 2016 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flschweiger/b972eb3f4f7b26b155760d16a8128d71 to your computer and use it in GitHub Desktop.
Save flschweiger/b972eb3f4f7b26b155760d16a8128d71 to your computer and use it in GitHub Desktop.
FingerprintManager authentication.
fingerprintManager = (FingerprintManager)
getSystemService(Context.FINGERPRINT_SERVICE);
fingerprintManager.authenticate(
@Nullable FingerprintManager.CryptoObject cryptoObject,
@Nullable CancellationSignal cancelSignal,
0 /* optional flags - should be 0 */,
FingerprintManager.AuthenticationCallback callback,
@Nullable Handler handler);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment