Flutter plugin for mofun flutter video.

SwiftMofunFlutterPluginVideoPlugin.swift 557B

123456789101112131415
  1. import Flutter
  2. import UIKit
  3. public class SwiftMofunFlutterPluginVideoPlugin: NSObject, FlutterPlugin {
  4. public static func register(with registrar: FlutterPluginRegistrar) {
  5. let channel = FlutterMethodChannel(name: "mofun_flutter_plugin_video", binaryMessenger: registrar.messenger())
  6. let instance = SwiftMofunFlutterPluginVideoPlugin()
  7. registrar.addMethodCallDelegate(instance, channel: channel)
  8. }
  9. public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
  10. result("iOS " + UIDevice.current.systemVersion)
  11. }
  12. }