1234567891011121314151617181920212223242526 |
- package com.shuangyubang.mofun_flutter_plugin_video
-
- import io.flutter.plugin.common.MethodCall
- import io.flutter.plugin.common.MethodChannel
- import io.flutter.plugin.common.MethodChannel.MethodCallHandler
- import io.flutter.plugin.common.MethodChannel.Result
- import io.flutter.plugin.common.PluginRegistry.Registrar
-
- class MofunFlutterPluginVideoPlugin: MethodCallHandler {
- companion object {
- @JvmStatic
- fun registerWith(registrar: Registrar) {
- val channel = MethodChannel(registrar.messenger(), "mofun_flutter_plugin_video")
- channel.setMethodCallHandler(MofunFlutterPluginVideoPlugin())
- }
- }
-
- override fun onMethodCall(call: MethodCall, result: Result) {
- if (call.method == "getPlatformVersion") {
- result.success("Android ${android.os.Build.VERSION.RELEASE}")
- } else {
- result.notImplemented()
- }
- }
- }
|