my_application_activate

GApplication

application

// ...

fl_register_plugins

FL_PLUGIN_REGISTRY

self

>

view

));

g_autoptr

FlStandardMethodCodec

codec

fl_standard_method_codec_new

();

self

>

battery_channel

fl_method_channel_new

fl_engine_get_binary_messenger

fl_view_get_engine

view

)),

"samples.flutter.dev/battery"

FL_METHOD_CODEC

codec

));