AppDelegate.cs 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. using Foundation;
  2. using UIKit;
  3. using Avalonia;
  4. namespace ControlCatalog
  5. {
  6. // The UIApplicationDelegate for the application. This class is responsible for launching the
  7. // User Interface of the application, as well as listening (and optionally responding) to
  8. // application events from iOS.
  9. [Register("AppDelegate")]
  10. public partial class AppDelegate : UIApplicationDelegate
  11. {
  12. //
  13. // This method is invoked when the application has loaded and is ready to run. In this
  14. // method you should instantiate the window, load the UI into it and then make the window
  15. // visible.
  16. //
  17. // You have 17 seconds to return from this method, or iOS will terminate your application.
  18. //
  19. public override bool FinishedLaunching(UIApplication uiapp, NSDictionary options)
  20. {
  21. AppBuilder.Configure<App>()
  22. .UseiOS()
  23. .UseSkiaViewHost()
  24. .UseSkia()
  25. .Start<MainWindow>();
  26. return true;
  27. }
  28. }
  29. }