AppDelegate.swift
1.02 KB
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
_ = VoiceXSMessageChannel(messager: controller.binaryMessenger)
_ = XSMessageMehtodChannel(message: controller.binaryMessenger);
_ = GameMessageChannel(message: controller.binaryMessenger);
// DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 6) {
// WowGameCocosManager.shared().runGame();
// }
// DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 15) {
// WowGameCocosManager.shared().runGame();
// }
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}