OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ |
| 10 |
| 11 #import "ARDAppDelegate.h" |
| 12 |
| 13 #import "ARDLogging.h" |
| 14 #import "ARDMainViewController.h" |
| 15 #import "RTCPeerConnectionFactory.h" |
| 16 |
| 17 @implementation ARDAppDelegate { |
| 18 UIWindow *_window; |
| 19 } |
| 20 |
| 21 #pragma mark - UIApplicationDelegate methods |
| 22 |
| 23 - (BOOL)application:(UIApplication *)application |
| 24 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { |
| 25 [RTCPeerConnectionFactory initializeSSL]; |
| 26 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
| 27 [_window makeKeyAndVisible]; |
| 28 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; |
| 29 _window.rootViewController = viewController; |
| 30 ARDLogInit(); |
| 31 return YES; |
| 32 } |
| 33 |
| 34 - (void)applicationWillResignActive:(UIApplication *)application { |
| 35 ARDMainViewController *viewController = |
| 36 (ARDMainViewController *)_window.rootViewController; |
| 37 [viewController applicationWillResignActive:application]; |
| 38 } |
| 39 |
| 40 - (void)applicationWillTerminate:(UIApplication *)application { |
| 41 [RTCPeerConnectionFactory deinitializeSSL]; |
| 42 } |
| 43 |
| 44 @end |
OLD | NEW |