NUIMiniProgramJSEngineInterface class abstract mixin

Abstract interface for the JS engine

Properties

channels List<NUIMiniProgramChannel>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addMessageToQueue(NUIMiniProgramMessage message) → void
Adding message to the queue to be picked up
completeMessageInQueue(NUIMiniProgramMessage message) → void
Completing the message in queue
initInternalChannelsForWeb(BuildContext context) → void
Initializing the internal channels for internal message exchange
messageReceived(String messageRaw) → void
Upon message received from the JS engine
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processEventMessage(String message) NUIMiniProgramMessage?
Processing the event message
sendAndAwaitCrossEvent(NUIMiniProgramMessage message, {Duration timeoutDuration = const Duration(seconds: 60)}) Future<NUIMiniProgramMessage?>
Send an event message and wait for the reply (two-ways)
sendPlatformCrossEvent(NUIMiniProgramMessage message) Future<bool>
Sending cross platform event message (one-way)
setChannels(List<NUIMiniProgramChannel> channels) → void
Setting the list of channels
toString() String
A string representation of this object.
inherited

Operators

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