IHostUiHandler.cs 1.1 KB

1234567891011121314151617181920212223242526
  1. using Ryujinx.HLE.HOS.Applets;
  2. namespace Ryujinx.HLE
  3. {
  4. public interface IHostUiHandler
  5. {
  6. /// <summary>
  7. /// Displays an Input Dialog box to the user and blocks until text is entered.
  8. /// </summary>
  9. /// <param name="userText">Text that the user entered. Set to `null` on internal errors</param>
  10. /// <returns>True when OK is pressed, False otherwise. Also returns True on internal errors</returns>
  11. bool DisplayInputDialog(SoftwareKeyboardUiArgs args, out string userText);
  12. /// <summary>
  13. /// Displays a Message Dialog box to the user and blocks until it is closed.
  14. /// </summary>
  15. /// <returns>True when OK is pressed, False otherwise.</returns>
  16. bool DisplayMessageDialog(string title, string message);
  17. /// <summary>
  18. /// Displays a Message Dialog box specific to Controller Applet and blocks until it is closed.
  19. /// </summary>
  20. /// <returns>True when OK is pressed, False otherwise.</returns>
  21. bool DisplayMessageDialog(ControllerAppletUiArgs args);
  22. }
  23. }