binaryMessenger:

registrar

messenger

codec:

FlutterStandardMethodCodec

sharedInstance

taskQueue:

taskQueue

];

MyPlugin

instance

[[

MyPlugin

alloc

init

];

registrar

addMethodCallDelegate

instance

channel

channel

];

Jumping to the UI thread in Android

To comply with channels’ UI thread requirement,
you might need to jump from a background thread
to Android’s UI thread to execute a channel method.
In Android, you can accomplish this by post()ing a
Runnable to Android’s UI thread Looper,
which causes the Runnable to execute on the
main thread at the next opportunity.