AppDelegate.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using Foundation;
  2. using UIKit;
  3. namespace ImageSearch.iOS
  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 : UIApplicationDelegate
  9. {
  10. // class-level declarations
  11. public override UIWindow Window {
  12. get;
  13. set;
  14. }
  15. public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
  16. {
  17. // Override point for customization after application launch.
  18. // If not required for your application you can safely delete this method
  19. return true;
  20. }
  21. public override void OnResignActivation (UIApplication application)
  22. {
  23. // Invoked when the application is about to move from active to inactive state.
  24. // This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message)
  25. // or when the user quits the application and it begins the transition to the background state.
  26. // Games should use this method to pause the game.
  27. }
  28. public override void DidEnterBackground (UIApplication application)
  29. {
  30. // Use this method to release shared resources, save user data, invalidate timers and store the application state.
  31. // If your application supports background exection this method is called instead of WillTerminate when the user quits.
  32. }
  33. public override void WillEnterForeground (UIApplication application)
  34. {
  35. // Called as part of the transiton from background to active state.
  36. // Here you can undo many of the changes made on entering the background.
  37. }
  38. public override void OnActivated (UIApplication application)
  39. {
  40. // Restart any tasks that were paused (or not yet started) while the application was inactive.
  41. // If the application was previously in the background, optionally refresh the user interface.
  42. }
  43. public override void WillTerminate (UIApplication application)
  44. {
  45. // Called when the application is about to terminate. Save data, if needed. See also DidEnterBackground.
  46. }
  47. }
  48. }