HostFunctionCallbackApi class abstract

Callback API for Host Service (native -> Dart).

Invoked when journey JS calls a function registered via HostServiceApi.

Implementers

Constructors

HostFunctionCallbackApi()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

invokeHandler(String callId, String name, String argsJson, List<String?> callbackNames) → void
argsJson is the JSON-encoded args object supplied by the script; callbackNames are the callback keys the script provided.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

setUp(HostFunctionCallbackApi? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) → void

Constants

pigeonChannelCodec → const MessageCodec<Object?>