Beispiel #1
0
 public override void OnAuthenticationError(int errorCode, ICharSequence errString)
 {
     if (_ignoreNextError)
     {
         _ignoreNextError = false;
         return;
     }
     new Handler(Looper.MainLooper).Post(() => _callback.OnBiometricError(errString.ToString()));
 }
Beispiel #2
0
        public void StartListening(IBiometricAuthCallback callback)
        {
            if (Listening)
            {
                return;
            }

            try
            {
                _spassFingerprint.StartIdentifyWithDialog(_context, new IdentifyListener(callback, _context, this), false);
                Listening = true;
            }
            catch (SpassInvalidStateException m)
            {
                callback.OnBiometricError(m.Message);
            }
            catch (IllegalStateException ex)
            {
                callback.OnBiometricError(ex.Message);
            }
        }
Beispiel #3
0
 public override void OnAuthenticationError(int errorCode, ICharSequence errString)
 {
     new Handler(Looper.MainLooper).Post(() => _callback.OnBiometricError(errString.ToString()));
 }