using System; namespace SukiUI.Toasts { public interface ISukiToastManager { /// /// Raised whenever a toast is queued. /// event SukiToastManagerEventHandler OnToastQueued; /// /// Raised whenever a toast is dismissed. /// event SukiToastManagerEventHandler OnToastDismissed; /// /// Raised whenever all toasts are dismissed at once. /// event EventHandler OnAllToastsDismissed; /// /// Queues a given toast for display. /// void Queue(ISukiToast toast); /// /// Dismisses a given toast from the stack, if it is still present. /// void Dismiss(ISukiToast toast); /// /// Dismisses a specific number of toasts from the stack. /// void Dismiss(int count); /// /// Ensures that the toast stack doesn't exceed the specified maximum. /// If it does, it will dismiss the oldest toasts down to the maximum. /// /// void EnsureMaximum(int maxAllowed); /// /// Dismisses all toasts from the stack immediately. /// void DismissAll(); /// /// Checks to see if a has already been dismissed from the stack. /// bool IsDismissed(ISukiToast toast); } }