ISukiDialogManager.cs 999 B

123456789101112131415161718192021222324252627282930
  1. namespace SukiUI.Dialogs
  2. {
  3. public interface ISukiDialogManager
  4. {
  5. /// <summary>
  6. /// Raised whenever a dialog is shown.
  7. /// </summary>
  8. event SukiDialogManagerEventHandler? OnDialogShown;
  9. /// <summary>
  10. /// Raised whenever a dialog is dismissed.
  11. /// </summary>
  12. event SukiDialogManagerEventHandler? OnDialogDismissed;
  13. /// <summary>
  14. /// Attempts to show a dialog - If one is already shown this will simply return false and not show the dialog.
  15. /// </summary>
  16. bool TryShowDialog(ISukiDialog dialog);
  17. /// <summary>
  18. /// Attempts to dismiss a dialog - If the specified dialog has already been dismissed, this will return false.
  19. /// </summary>
  20. bool TryDismissDialog(ISukiDialog dialog);
  21. /// <summary>
  22. /// Dismisses the currently active dialog, if there is one.
  23. /// </summary>
  24. void DismissDialog();
  25. }
  26. }