Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.plugin.common.BinaryMessenger.BinaryMessageHandler Interface Reference

Public Member Functions

void onMessage (@Nullable ByteBuffer message, @NonNull BinaryReply reply)
 

Detailed Description

Handler for incoming binary messages from Flutter.

Definition at line 173 of file BinaryMessenger.java.

Member Function Documentation

◆ onMessage()

void io.flutter.plugin.common.BinaryMessenger.BinaryMessageHandler.onMessage ( @Nullable ByteBuffer  message,
@NonNull BinaryReply  reply 
)

Handles the specified message.

Handler implementations must reply to all incoming messages, by submitting a single reply message to the given BinaryReply. Failure to do so will result in lingering Flutter reply handlers. The reply may be submitted asynchronously.

Any uncaught exception thrown by this method will be caught by the messenger implementation and logged, and a null reply message will be sent back to Flutter.

Parameters
messagethe message ByteBuffer payload, possibly null.
replyA BinaryReply used for submitting a reply back to Flutter.

The documentation for this interface was generated from the following file: