123456789101112131415161718192021222324252627282930 |
- namespace SukiUI.Dialogs
- {
- public interface ISukiDialogManager
- {
- /// <summary>
- /// Raised whenever a dialog is shown.
- /// </summary>
- event SukiDialogManagerEventHandler? OnDialogShown;
-
- /// <summary>
- /// Raised whenever a dialog is dismissed.
- /// </summary>
- event SukiDialogManagerEventHandler? OnDialogDismissed;
-
- /// <summary>
- /// Attempts to show a dialog - If one is already shown this will simply return false and not show the dialog.
- /// </summary>
- bool TryShowDialog(ISukiDialog dialog);
-
- /// <summary>
- /// Attempts to dismiss a dialog - If the specified dialog has already been dismissed, this will return false.
- /// </summary>
- bool TryDismissDialog(ISukiDialog dialog);
-
- /// <summary>
- /// Dismisses the currently active dialog, if there is one.
- /// </summary>
- void DismissDialog();
- }
- }
|