private void LogUserIn() { var cancellation = new Android.Support.V4.OS.CancellationSignal(); FingerprintManagerCompat.AuthenticationCallback authenticationCallback = new AuthenticationCallback(this, userId); Toast.MakeText(this, "Поднесите палец к сенсору", ToastLength.Long).Show(); fingerprintManager.Authenticate(null, 0, cancellation, authenticationCallback, null); }
private void UserFPMLogin() { var cancel = new global::Android.Support.V4.OS.CancellationSignal(); FingerprintManagerCompat.AuthenticationCallback authentication = new AuthenticationCallback(this, UserId); Toast.MakeText(this, "Place fingerprint on sensor", ToastLength.Long).Show(); fpm.Authenticate(null, 0, cancel, authentication, null); }