receive_intent_android34/ios/Classes/SwiftReceiveIntentPlugin.swift
2021-04-23 10:45:26 +05:30

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)
}
}