AppDelegate.m 2.4 KB

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