ChannelHandler

class ChannelHandler(context: Context) : FlutterPlugin, MethodChannel.MethodCallHandler

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
fun <S : Req, D : Rsp> invokeMethod(method: ChannelMethod, request: S, toResponse: (MethodCall) -> D): CompletableDeferred<D>
Link copied to clipboard
open override fun onAttachedToEngine(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding)
Link copied to clipboard
open override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding)
Link copied to clipboard
open override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: MethodChannel.Result)