allez
2022-05-18 e81111af2f2dd30da13be8ac14f8fb360ba1178f
0312 代码移至UnityAppController.mm
1个文件已修改
57 ■■■■■ 已修改文件
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm 57 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Channel/IOS/sohagame/Plugins/The2thWorldSDK/UniversalSDK.mm
@@ -223,67 +223,16 @@
    [Soha showInAppPopupTracking];
}
- (UIInterfaceOrientationMask)application:(UIApplication*)application supportedInterfaceOrientationsForWindow:(UIWindow*)window
{
//    return UIInterfaceOrientationMaskAll;
//    return UIInterfaceOrientationMaskPortrait;
         return UIInterfaceOrientationMaskLandscape;
}
- (BOOL)application:(UIApplication *)app
            openURL:(NSURL *)url
            options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{
    return [Soha application:app
                     openURL:url
                     options:options];
}
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler{
    return [Soha application:application
        continueUserActivity:userActivity
          restorationHandler:restorationHandler];
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    [Soha sohaHandleDidEnterBackground];
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
    [Soha sohaHandleDidEnterForeground];
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
   /*
     Need for facebook
     */
    [Soha sohaHandleDidBecomeActive];
}
- (void)applicationWillTerminate:(UIApplication *)application
{
    /*
     Need for facebook
     */
    [Soha sohaHandleWillTerminate];
}
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
    [Soha sohaPostDeviceToken:deviceToken];
}
- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler{
    [Soha userNotificationCenter:center didReceiveNotificationResponse:response];
}
- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler{
     [Soha userNotificationCenter:center willPresentNotification:notification];
}
- (void)sohaDeleteAccountDelegate:(SohaUser *)user
{
    NSLog(@"删除角色 callback");