Path: blob/main/Natives/AppDelegate.m
589 views
#import "AppDelegate.h"1#import "SceneDelegate.h"2#import "ios_uikit_bridge.h"3#import "utils.h"45// SurfaceViewController6extern dispatch_group_t fatalExitGroup;78@implementation AppDelegate910#pragma mark - UISceneSession lifecycle111213- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {14// Called when a new scene session is being created.15// Use this method to select a configuration to create the new scene with.16return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];17}181920- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {21// Called when the user discards a scene session.22// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.23// Use this method to release any resources that were specific to the discarded scenes, as they will not return.24}2526- (void)applicationWillTerminate:(UIApplication *)application {27if (fatalExitGroup != nil) {28dispatch_group_leave(fatalExitGroup);29fatalExitGroup = nil;30}31}3233@end343536