AppDelegate.cs 797 B

123456789101112131415161718192021222324
  1. using Foundation;
  2. using Avalonia;
  3. using Avalonia.iOS;
  4. using UIKit;
  5. namespace SingleProjectSandbox;
  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 class AppDelegate : AvaloniaAppDelegate<App>
  11. {
  12. protected override AppBuilder CreateAppBuilder() =>
  13. App.BuildAvaloniaApp().UseiOS();
  14. // This is the main entry point of the application.
  15. internal static void Main(string[] args)
  16. {
  17. // if you want to use a different Application Delegate class from "AppDelegate"
  18. // you can specify it here.
  19. UIApplication.Main(args, null, typeof(AppDelegate));
  20. }
  21. }