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