mop-flutter-sdk/example/ios/Runner/AppDelegate.swift

20 lines
642 B
Dart
Raw Normal View History

2021-10-10 23:50:23 +08:00
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
2023-04-10 16:22:48 +08:00
var channelHander : FlutterMethodChannelHandler?
2021-10-10 23:50:23 +08:00
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
2023-04-10 16:22:48 +08:00
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
channelHander = FlutterMethodChannelHandler(messenger: controller)
2021-10-10 23:50:23 +08:00
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}