1*d9f75844SAndroid Build Coastguard Worker/* 2*d9f75844SAndroid Build Coastguard Worker * Copyright 2018 The WebRTC Project Authors. All rights reserved. 3*d9f75844SAndroid Build Coastguard Worker * 4*d9f75844SAndroid Build Coastguard Worker * Use of this source code is governed by a BSD-style license 5*d9f75844SAndroid Build Coastguard Worker * that can be found in the LICENSE file in the root of the source 6*d9f75844SAndroid Build Coastguard Worker * tree. An additional intellectual property rights grant can be found 7*d9f75844SAndroid Build Coastguard Worker * in the file PATENTS. All contributing project authors may 8*d9f75844SAndroid Build Coastguard Worker * be found in the AUTHORS file in the root of the source tree. 9*d9f75844SAndroid Build Coastguard Worker */ 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Worker#import "NADAppDelegate.h" 12*d9f75844SAndroid Build Coastguard Worker 13*d9f75844SAndroid Build Coastguard Worker#import "NADViewController.h" 14*d9f75844SAndroid Build Coastguard Worker 15*d9f75844SAndroid Build Coastguard Worker@interface NADAppDelegate () 16*d9f75844SAndroid Build Coastguard Worker@end 17*d9f75844SAndroid Build Coastguard Worker 18*d9f75844SAndroid Build Coastguard Worker@implementation NADAppDelegate 19*d9f75844SAndroid Build Coastguard Worker 20*d9f75844SAndroid Build Coastguard Worker@synthesize window = _window; 21*d9f75844SAndroid Build Coastguard Worker 22*d9f75844SAndroid Build Coastguard Worker- (BOOL)application:(UIApplication *)application 23*d9f75844SAndroid Build Coastguard Worker didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 24*d9f75844SAndroid Build Coastguard Worker _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 25*d9f75844SAndroid Build Coastguard Worker [_window makeKeyAndVisible]; 26*d9f75844SAndroid Build Coastguard Worker 27*d9f75844SAndroid Build Coastguard Worker NADViewController *viewController = [[NADViewController alloc] init]; 28*d9f75844SAndroid Build Coastguard Worker _window.rootViewController = viewController; 29*d9f75844SAndroid Build Coastguard Worker 30*d9f75844SAndroid Build Coastguard Worker return YES; 31*d9f75844SAndroid Build Coastguard Worker} 32*d9f75844SAndroid Build Coastguard Worker 33*d9f75844SAndroid Build Coastguard Worker- (void)applicationWillResignActive:(UIApplication *)application { 34*d9f75844SAndroid Build Coastguard Worker // Sent when the application is about to move from active to inactive state. This can occur for 35*d9f75844SAndroid Build Coastguard Worker // certain types of temporary interruptions (such as an incoming phone call or SMS message) or 36*d9f75844SAndroid Build Coastguard Worker // when the user quits the application and it begins the transition to the background state. Use 37*d9f75844SAndroid Build Coastguard Worker // this method to pause ongoing tasks, disable timers, and invalidate graphics rendering 38*d9f75844SAndroid Build Coastguard Worker // callbacks. Games should use this method to pause the game. 39*d9f75844SAndroid Build Coastguard Worker} 40*d9f75844SAndroid Build Coastguard Worker 41*d9f75844SAndroid Build Coastguard Worker- (void)applicationDidEnterBackground:(UIApplication *)application { 42*d9f75844SAndroid Build Coastguard Worker // Use this method to release shared resources, save user data, invalidate timers, and store 43*d9f75844SAndroid Build Coastguard Worker // enough application state information to restore your application to its current state in case 44*d9f75844SAndroid Build Coastguard Worker // it is terminated later. If your application supports background execution, this method is 45*d9f75844SAndroid Build Coastguard Worker // called instead of applicationWillTerminate: when the user quits. 46*d9f75844SAndroid Build Coastguard Worker} 47*d9f75844SAndroid Build Coastguard Worker 48*d9f75844SAndroid Build Coastguard Worker- (void)applicationWillEnterForeground:(UIApplication *)application { 49*d9f75844SAndroid Build Coastguard Worker // Called as part of the transition from the background to the active state; here you can undo 50*d9f75844SAndroid Build Coastguard Worker // many of the changes made on entering the background. 51*d9f75844SAndroid Build Coastguard Worker} 52*d9f75844SAndroid Build Coastguard Worker 53*d9f75844SAndroid Build Coastguard Worker- (void)applicationDidBecomeActive:(UIApplication *)application { 54*d9f75844SAndroid Build Coastguard Worker // Restart any tasks that were paused (or not yet started) while the application was inactive. If 55*d9f75844SAndroid Build Coastguard Worker // the application was previously in the background, optionally refresh the user interface. 56*d9f75844SAndroid Build Coastguard Worker} 57*d9f75844SAndroid Build Coastguard Worker 58*d9f75844SAndroid Build Coastguard Worker- (void)applicationWillTerminate:(UIApplication *)application { 59*d9f75844SAndroid Build Coastguard Worker // Called when the application is about to terminate. Save data if appropriate. See also 60*d9f75844SAndroid Build Coastguard Worker // applicationDidEnterBackground:. 61*d9f75844SAndroid Build Coastguard Worker} 62*d9f75844SAndroid Build Coastguard Worker 63*d9f75844SAndroid Build Coastguard Worker@end 64