tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

NADAppDelegate.m (2584B)


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