AppDelegate.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Foundation;
  2. using UIKit;
  3. namespace personalbooks
  4. {
  5. // The UIApplicationDelegate for the application. This class is responsible for launching the
  6. // User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
  7. [Register("AppDelegate")]
  8. public class AppDelegate : UIResponder, IUIApplicationDelegate
  9. {
  10. [Export("window")]
  11. public UIWindow Window { get; set; }
  12. [Export("application:didFinishLaunchingWithOptions:")]
  13. public bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
  14. {
  15. // Override point for customization after application launch.
  16. // If not required for your application you can safely delete this method
  17. return true;
  18. }
  19. // UISceneSession Lifecycle
  20. [Export("application:configurationForConnectingSceneSession:options:")]
  21. public UISceneConfiguration GetConfiguration(UIApplication application, UISceneSession connectingSceneSession, UISceneConnectionOptions options)
  22. {
  23. // Called when a new scene session is being created.
  24. // Use this method to select a configuration to create the new scene with.
  25. return UISceneConfiguration.Create("Default Configuration", connectingSceneSession.Role);
  26. }
  27. [Export("application:didDiscardSceneSessions:")]
  28. public void DidDiscardSceneSessions(UIApplication application, NSSet<UISceneSession> sceneSessions)
  29. {
  30. // Called when the user discards a scene session.
  31. // If any sessions were discarded while the application was not running, this will be called shortly after `FinishedLaunching`.
  32. // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
  33. }
  34. }
  35. }