lokinet-flutter-app/lokinet_lib/ios/Classes/SwiftLokinetLibPlugin.swift

15 lines
516 B
Swift

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