xref: /third_party/gn/examples/ios/app/AppDelegate.m (revision 6d528ed9)
16d528ed9Sopenharmony_ci// Copyright 2019 The Chromium Authors. All rights reserved.
26d528ed9Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be
36d528ed9Sopenharmony_ci// found in the LICENSE file.
46d528ed9Sopenharmony_ci
56d528ed9Sopenharmony_ci#import "app/AppDelegate.h"
66d528ed9Sopenharmony_ci
76d528ed9Sopenharmony_ci#import "app/Foo.h"
86d528ed9Sopenharmony_ci
96d528ed9Sopenharmony_ci@implementation AppDelegate
106d528ed9Sopenharmony_ci
116d528ed9Sopenharmony_ci- (BOOL)application:(UIApplication*)application
126d528ed9Sopenharmony_ci    didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
136d528ed9Sopenharmony_ci  NSLog(@"%@", [[[FooWrapper alloc] init] helloWithName:@"World"]);
146d528ed9Sopenharmony_ci  return YES;
156d528ed9Sopenharmony_ci}
166d528ed9Sopenharmony_ci
176d528ed9Sopenharmony_ci#pragma mark - UISceneSession lifecycle
186d528ed9Sopenharmony_ci
196d528ed9Sopenharmony_ci- (UISceneConfiguration*)application:(UIApplication*)application
206d528ed9Sopenharmony_ci    configurationForConnectingSceneSession:
216d528ed9Sopenharmony_ci        (UISceneSession*)connectingSceneSession
226d528ed9Sopenharmony_ci                                   options:(UISceneConnectionOptions*)options {
236d528ed9Sopenharmony_ci  return
246d528ed9Sopenharmony_ci      [[UISceneConfiguration alloc] initWithName:@"Default Configuration"
256d528ed9Sopenharmony_ci                                     sessionRole:connectingSceneSession.role];
266d528ed9Sopenharmony_ci}
276d528ed9Sopenharmony_ci
286d528ed9Sopenharmony_ci- (void)application:(UIApplication*)application
296d528ed9Sopenharmony_ci    didDiscardSceneSessions:(NSSet<UISceneSession*>*)sceneSessions {
306d528ed9Sopenharmony_ci}
316d528ed9Sopenharmony_ci
326d528ed9Sopenharmony_ci@end
33