NUIMiniProgramWebJSEngine class
Mini-program JS engine for web
- Mixed-in types
-
- NUIMiniProgramJSEngineInterface
- NUIMiniProgramWebJSEngineAPI
Properties
-
channels
→ List<
NUIMiniProgramChannel> -
no setterinherited
- connectionInitialized → bool
-
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
inherited
-
completeMessageInQueue(
NUIMiniProgramMessage message) → void -
Completing the message in queue
inherited
-
exchangeMessage(
dynamic input) → Future - Exchanging message with super-app
-
initCrossEventListener(
NUICrossEventMessageListener listener) → void - Initializing the message event listener to retrieve messages from the JS message queue
-
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
-
requestSession(
) → Future< NUIMiniProgramSession?> -
Sending a request to get the current session
override
-
sendAndAwaitCrossEvent(
NUIMiniProgramMessage message, {Duration timeoutDuration = const Duration(seconds: 60)}) → Future< NUIMiniProgramMessage?> -
Send an event message and wait for the reply (two-ways)
inherited
-
sendDefaultChannelEvent(
NUIMiniProgramEventType type, {required String payload}) → Future< bool> -
override
-
sendFileSelect(
{required List< String> extensions}) → Future<NUIMiniProgramFile?> -
Sending the file selection event to select a file
override
-
sendInitializedEvent(
{Duration maximumDelay = const Duration(seconds: 1)}) → Future< bool> -
Sending the initialized event to notify the parent app that the initial loading has completed
override
-
sendPlatformCrossEvent(
NUIMiniProgramMessage message) → Future< bool> -
Sending cross platform event message (one-way)
override
-
sendPopEvent(
) → Future< bool> -
Sending the pop event to close the current page
override
-
sendRecordVideo(
{bool rear = true}) → Future< NUIMiniProgramFile?> -
Sending a request to record video
override
-
sendTakePhoto(
{bool rear = true}) → Future< NUIMiniProgramFile?> -
Sending the event to take a photo
override
-
setChannels(
List< NUIMiniProgramChannel> channels) → void -
Setting the list of channels
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from(
Window window, {NUIMiniProgramWebJSEngineAPI? simulator}) → NUIMiniProgramWebJSEngine