m3_lightmeter/ios/Runner/AppDelegate.swift

17 lines
733 B
Swift
Raw Normal View History

2022-10-15 16:35:35 +00:00
import UIKit
import Flutter
@main
2022-10-15 16:35:35 +00:00
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
let caffeinePlatformChannel = CaffeinePlatformChannel(binaryMessenger: controller.binaryMessenger)
2025-05-11 11:17:52 +00:00
let cameraInfoPlatformChannel = CameraInfoPlatformChannel(binaryMessenger: controller.binaryMessenger)
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
2022-10-15 16:35:35 +00:00
}