AppDelegate.cs 1.1 KB

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