AppDelegate.cs 2.5 KB

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