AppDelegate.m 2.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. #include "AppDelegate.h"
  2. #include "GeneratedPluginRegistrant.h"
  3. @implementation AppDelegate
  4. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  5. [GeneratedPluginRegistrant registerWithRegistry:self];
  6. // Override point for customization after application launch.
  7. return [super application:application didFinishLaunchingWithOptions:launchOptions];
  8. }
  9. - (void)applicationWillResignActive:(UIApplication *)application {
  10. // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
  11. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
  12. }
  13. - (void)applicationDidEnterBackground:(UIApplication *)application {
  14. // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
  15. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  16. }
  17. - (void)applicationWillEnterForeground:(UIApplication *)application {
  18. // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
  19. }
  20. - (void)applicationDidBecomeActive:(UIApplication *)application {
  21. // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
  22. }
  23. - (void)applicationWillTerminate:(UIApplication *)application {
  24. // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  25. }
  26. @end