This repository was archived by the owner on Mar 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
android/src/main/kotlin/com/example/test_plugin Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 11package com.example.test_plugin
22
33import androidx.annotation.NonNull;
4+ import android.util.Log;
45import io.flutter.embedding.engine.plugins.FlutterPlugin
56import io.flutter.plugin.common.MethodCall
67import io.flutter.plugin.common.MethodChannel
@@ -11,6 +12,7 @@ import io.flutter.plugin.common.PluginRegistry.Registrar
1112/* * TestPlugin */
1213public class TestPlugin : FlutterPlugin , MethodCallHandler {
1314 override fun onAttachedToEngine (@NonNull flutterPluginBinding : FlutterPlugin .FlutterPluginBinding ) {
15+ Log .i(" xyzzy" , " onAttachedToEngine: " + flutterPluginBinding.getFlutterEngine());
1416 val channel = MethodChannel (flutterPluginBinding.getFlutterEngine().getDartExecutor(), " test_plugin" )
1517 channel.setMethodCallHandler(TestPlugin ());
1618 }
@@ -27,6 +29,7 @@ public class TestPlugin: FlutterPlugin, MethodCallHandler {
2729 companion object {
2830 @JvmStatic
2931 fun registerWith (registrar : Registrar ) {
32+ Log .i(" xyzzy" , " registerWith: " + registrar);
3033 val channel = MethodChannel (registrar.messenger(), " test_plugin" )
3134 channel.setMethodCallHandler(TestPlugin ())
3235 }
You can’t perform that action at this time.
0 commit comments