public override void OnAuthenticationError(FingerprintState errorCode, ICharSequence errString)
 {
     Kp2aLog.Log("FP: OnAuthenticationError: " + errString + ", " + _selfCancelled);
     if (!_selfCancelled)
     {
         _callback.OnAuthenticationError(errorCode, errString);
     }
 }
 public override void OnAuthenticationError(FingerprintState errorCode, Java.Lang.ICharSequence errString)
 {
     if (!mSelfCancelled)
     {
         ShowError(errString.ToString());
         mIcon.PostDelayed(() => {
             mCallback.OnError();
         }, ERROR_TIMEOUT_MILLIS);
     }
 }
Example #3
0
        // Do not cancel the dialog on error.
        // TODO: Implement feedback (shaking icon, display text, ...)
        //public override void OnAuthenticationFailed()
        //{
        //    base.OnAuthenticationFailed();
        //    var result = new FingerprintAuthenticationResult { Status = FingerprintAuthenticationResultStatus.UnknownError };
        //    SetResultSafe(result);
        //}

        public override void OnAuthenticationError(FingerprintState errorCode, ICharSequence errString)
        {
            base.OnAuthenticationError(errorCode, errString);
            var message = errString != null?errString.ToString() : string.Empty;

            var result = new FingerprintAuthenticationResult {
                Status = FingerprintAuthenticationResultStatus.Failed, ErrorMessage = message
            };

            SetResultSafe(result);
        }
        public override void OnAuthenticationError(FingerprintState errorCode, ICharSequence errString)
        {
            base.OnAuthenticationError(errorCode, errString);
            var message = errString != null ? errString.ToString() : string.Empty;
            var result = new FingerprintAuthenticationResult { Status = FingerprintAuthenticationResultStatus.Failed, ErrorMessage = message };

            if (errorCode == FingerprintState.ErrorLockout)
            {
                result.Status = FingerprintAuthenticationResultStatus.TooManyAttempts;
            }

            SetResultSafe(result);
        }
 public override void OnAuthenticationError(FingerprintState errorCode, ICharSequence errString)
 {
     base.OnAuthenticationError(errorCode, errString);
     this.scanEval.TrySetException(new ApplicationException(""));
 }
 public override void OnAuthenticationHelp(FingerprintState helpCode, ICharSequence helpString)
 {
     _callback.OnFingerprintError(helpString.ToString());
 }
 public override void OnAuthenticationError(FingerprintState errorCode, ICharSequence errString)
 {
     _callback.OnFingerprintError(errString.ToString());
 }
Example #8
0
 public override void OnAuthenticationHelp([GeneratedEnum] FingerprintState helpCode, ICharSequence helpString)
 {
     // Notify the user that the scan failed and display the provided hint.
 }
Example #9
0
 public override void OnAuthenticationError([GeneratedEnum] FingerprintState errorCode, ICharSequence errString)
 {
     // Report the error to the user. Note that if the user canceled the scan,
     // this method will be called and the errMsgId will be FingerprintState.ErrorCanceled.
 }
Example #10
0
 public override void OnAuthenticationHelp(FingerprintState helpCode, Java.Lang.ICharSequence helpString)
 {
     ShowError(helpString.ToString());
 }
 public override void OnAuthenticationError(FingerprintState errorCode, ICharSequence errString)
 {
     base.OnAuthenticationError(errorCode, errString);
     this.scanEval.TrySetResult(false);
 }
 public override void OnAuthenticationHelp(FingerprintState helpCode, ICharSequence helpString)
 {
     base.OnAuthenticationHelp(helpCode, helpString);
     _listener?.OnHelp(FingerprintAuthenticationHelp.MovedTooFast, helpString?.ToString());
 }
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="state"></param>
 /// <param name="err"></param>
 public AuthenticationEventArgs(FingerprintState state, Java.Lang.ICharSequence err) : this(state, err.ToString())
 {
 }
 /// <summary>
 /// To be added.
 /// </summary>
 /// <param name="state"></param>
 /// <param name="err"></param>
 public AuthenticationEventArgs(FingerprintState state, string err)
 {
     State = state;
     Err   = err;
 }
		public override void OnAuthenticationError (FingerprintState errorCode, Java.Lang.ICharSequence errString)
		{
			if (!mSelfCancelled) {
				ShowError (errString.ToString ());
				mIcon.PostDelayed (() => {
					mCallback.OnError ();
				}, ERROR_TIMEOUT_MILLIS);
			}
		}
		public override void OnAuthenticationHelp (FingerprintState helpCode, Java.Lang.ICharSequence helpString)
		{
			ShowError (helpString.ToString ());
		}