IPinEntryService.cs 1.1 KB

1234567891011121314151617181920212223242526
  1. namespace SRDebugger.Services
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. public delegate void PinEntryCompleteCallback(bool validPinEntered);
  6. public interface IPinEntryService
  7. {
  8. bool IsShowingKeypad { get; }
  9. /// <summary>
  10. /// Show the pin entry form.
  11. /// </summary>
  12. /// <param name="requiredPin">List of digits 0-9, length 4.</param>
  13. /// <param name="message">Message to display to the user on the form.</param>
  14. /// <param name="callback">Callback to invoke when the pin entry is complete or cancelled.</param>
  15. /// <param name="allowCancel">True to allow the user to cancel the form.</param>
  16. void ShowPinEntry(IList<int> requiredPin, string message, PinEntryCompleteCallback callback,
  17. bool allowCancel = true);
  18. [Obsolete("blockInput param is deprecated (and ignored), please use overload without it.")]
  19. void ShowPinEntry(IList<int> requiredPin, string message, PinEntryCompleteCallback callback, bool blockInput,
  20. bool allowCancel);
  21. }
  22. }