Car/Assets/StompyRobot/SRDebugger/Scripts/Services/IPinEntryService.cs

23 lines
844 B
C#
Raw Permalink Normal View History

2025-01-02 11:32:58 +08:00
namespace SRDebugger.Services
{
using System;
using System.Collections.Generic;
public delegate void PinEntryCompleteCallback(bool validPinEntered);
public interface IPinEntryService
{
bool IsShowingKeypad { get; }
/// <summary>
/// Show the pin entry form.
/// </summary>
/// <param name="requiredPin">List of digits 0-9, length 4.</param>
/// <param name="message">Message to display to the user on the form.</param>
/// <param name="callback">Callback to invoke when the pin entry is complete or cancelled.</param>
/// <param name="allowCancel">True to allow the user to cancel the form.</param>
void ShowPinEntry(IReadOnlyList<int> requiredPin, string message, PinEntryCompleteCallback callback,
bool allowCancel = true);
}
}