You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
638B

  1. import Flutter
  2. import UIKit
  3. public class SwiftFlutterQrPlugin: NSObject, FlutterPlugin {
  4. var factory: QRViewFactory
  5. public init(with registrar: FlutterPluginRegistrar) {
  6. self.factory = QRViewFactory(withRegistrar: registrar)
  7. registrar.register(factory, withId: "net.touchcapture.qr.flutterqr/qrview")
  8. }
  9. public static func register(with registrar: FlutterPluginRegistrar) {
  10. registrar.addApplicationDelegate(SwiftFlutterQrPlugin(with: registrar))
  11. }
  12. public func applicationDidEnterBackground(_ application: UIApplication) {
  13. }
  14. public func applicationWillTerminate(_ application: UIApplication) {
  15. }
  16. }