AppDelegate.m 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright 2019 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "AppDelegate.h"
  17. @interface AppDelegate ()
  18. @end
  19. @implementation AppDelegate
  20. - (BOOL)application:(UIApplication *)application
  21. didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  22. // Override point for customization after application launch.
  23. return YES;
  24. }
  25. - (void)applicationWillResignActive:(UIApplication *)application {
  26. // Sent when the application is about to move from active to inactive state. This can occur for
  27. // certain types of temporary interruptions (such as an incoming phone call or SMS message) or
  28. // when the user quits the application and it begins the transition to the background state. Use
  29. // this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates.
  30. // Games should use this method to pause the game.
  31. }
  32. - (void)applicationDidEnterBackground:(UIApplication *)application {
  33. // Use this method to release shared resources, save user data, invalidate timers, and store
  34. // enough application state information to restore your application to its current state in case
  35. // it is terminated later. If your application supports background execution, this method is
  36. // called instead of applicationWillTerminate: when the user quits.
  37. }
  38. - (void)applicationWillEnterForeground:(UIApplication *)application {
  39. // Called as part of the transition from the background to the active state; here you can undo
  40. // many of the changes made on entering the background.
  41. }
  42. - (void)applicationDidBecomeActive:(UIApplication *)application {
  43. // Restart any tasks that were paused (or not yet started) while the application was inactive. If
  44. // the application was previously in the background, optionally refresh the user interface.
  45. }
  46. - (void)applicationWillTerminate:(UIApplication *)application {
  47. // Called when the application is about to terminate. Save data if appropriate. See also
  48. // applicationDidEnterBackground:.
  49. }
  50. @end