private void LogUserIn() { var authenticationCallback = new AuthenticationCallback(this, _userId); Toast.MakeText(this, "Place fingerprint on sensor", ToastLength.Long).Show(); _fingerprintManager.Authenticate(null, 0, _cancellationSignal, authenticationCallback, null); }
private void LogUserIn() { _cancelation = new global::Android.Support.V4.OS.CancellationSignal(); FingerprintManagerCompat.AuthenticationCallback authenticationCallback = new AuthenticationCallback(this, _userId); Toast.MakeText(this, "Place fingerprint on sensor", ToastLength.Long).Show(); _fingerprintManagerCompat.Authenticate(null, 0, _cancelation, authenticationCallback, null); }