method
The actual platform method signature to be executed.
In the following example 'greeting()' is the method:
override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) {
mainScope.launch {
when (call.method) {
"greeting" -> {
result.success(Greeting().greeting())
}
else -> result.notImplemented()
}
}
}
Content copied to clipboard