NUIMiniProgramJSEngine class

Defining the javascript engine for mini-program

Mixed-in types
  • NUIMiniProgramJSEngineInterface

Properties

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

Methods

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

Operators

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

Static Methods

from(NUIMiniProgramModule module) NUIMiniProgramJSEngine

Constants

MODULE → const String