|
| 1 | +/* |
| 2 | + * Copyright 2020 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 | + |
| 17 | +#include "FIRAppDelegate.h" |
| 18 | + |
| 19 | +@implementation FIRAppDelegate |
| 20 | + |
| 21 | +- (BOOL)application:(UIApplication *)application |
| 22 | + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { |
| 23 | + // Override point for customization after application launch. |
| 24 | + return YES; |
| 25 | +} |
| 26 | + |
| 27 | +- (void)applicationWillResignActive:(UIApplication *)application { |
| 28 | + // Sent when the application is about to move from active to inactive state. This can occur for |
| 29 | + // certain types of temporary interruptions (such as an incoming phone call or SMS message) or |
| 30 | + // when the user quits the application and it begins the transition to the background state. Use |
| 31 | + // this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. |
| 32 | + // Games should use this method to pause the game. |
| 33 | +} |
| 34 | + |
| 35 | +- (void)applicationDidEnterBackground:(UIApplication *)application { |
| 36 | + // Use this method to release shared resources, save user data, invalidate timers, and store |
| 37 | + // enough application state information to restore your application to its current state in case |
| 38 | + // it is terminated later. If your application supports background execution, this method is |
| 39 | + // called instead of applicationWillTerminate: when the user quits. |
| 40 | +} |
| 41 | + |
| 42 | +- (void)applicationWillEnterForeground:(UIApplication *)application { |
| 43 | + // Called as part of the transition from the background to the inactive state; here you can undo |
| 44 | + // many of the changes made on entering the background. |
| 45 | +} |
| 46 | + |
| 47 | +- (void)applicationDidBecomeActive:(UIApplication *)application { |
| 48 | + // Restart any tasks that were paused (or not yet started) while the application was inactive. If |
| 49 | + // the application was previously in the background, optionally refresh the user interface. |
| 50 | +} |
| 51 | + |
| 52 | +- (void)applicationWillTerminate:(UIApplication *)application { |
| 53 | + // Called when the application is about to terminate. Save data if appropriate. See also |
| 54 | + // applicationDidEnterBackground:. |
| 55 | +} |
| 56 | + |
| 57 | +@end |
0 commit comments