Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/PojavLauncher_iOS
Path: blob/main/Natives/AppDelegate.m
589 views
1
#import "AppDelegate.h"
2
#import "SceneDelegate.h"
3
#import "ios_uikit_bridge.h"
4
#import "utils.h"
5
6
// SurfaceViewController
7
extern dispatch_group_t fatalExitGroup;
8
9
@implementation AppDelegate
10
11
#pragma mark - UISceneSession lifecycle
12
13
14
- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options {
15
// Called when a new scene session is being created.
16
// Use this method to select a configuration to create the new scene with.
17
return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role];
18
}
19
20
21
- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet<UISceneSession *> *)sceneSessions {
22
// Called when the user discards a scene session.
23
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
24
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
25
}
26
27
- (void)applicationWillTerminate:(UIApplication *)application {
28
if (fatalExitGroup != nil) {
29
dispatch_group_leave(fatalExitGroup);
30
fatalExitGroup = nil;
31
}
32
}
33
34
@end
35
36