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
592 B
23 lines
592 B
4 years ago
|
//
|
||
|
// MinPlugin.swift
|
||
|
// Runner
|
||
|
//
|
||
|
// Created by 冯美坎 on 2021/6/18.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
import Flutter
|
||
|
import UIKit
|
||
|
|
||
|
public class SwiftMinPlugin: NSObject, FlutterPlugin {
|
||
|
public static func register(with registrar: FlutterPluginRegistrar) {
|
||
|
let channel = FlutterMethodChannel(name: "min", binaryMessenger: registrar.messenger())
|
||
|
let instance = SwiftMinPlugin()
|
||
|
registrar.addMethodCallDelegate(instance, channel: channel)
|
||
|
}
|
||
|
|
||
|
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||
|
result("iOS " + UIDevice.current.systemVersion)
|
||
|
}
|
||
|
}
|