1234567891011121314 |
- import Flutter
- import UIKit
- public class SwiftNativeVisionPlugin: NSObject, FlutterPlugin {
- public static func register(with registrar: FlutterPluginRegistrar) {
- let channel = FlutterMethodChannel(name: "native_vision", binaryMessenger: registrar.messenger())
- let instance = SwiftNativeVisionPlugin()
- registrar.addMethodCallDelegate(instance, channel: channel)
- }
- public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
- result("iOS " + UIDevice.current.systemVersion)
- }
- }
|