5package io.flutter.plugin.common;
7import androidx.annotation.NonNull;
8import androidx.annotation.Nullable;
9import androidx.annotation.UiThread;
10import java.nio.ByteBuffer;
41 private boolean isSerial =
true;
54 this.isSerial = isSerial;
81 throw new UnsupportedOperationException(
"makeBackgroundTaskQueue not implemented.");
92 void send(@NonNull String channel, @Nullable ByteBuffer
message);
141 @NonNull String channel,
145 if (taskQueue !=
null) {
146 throw new UnsupportedOperationException(
147 "setMessageHandler called with nonnull taskQueue is not supported.");
160 throw new UnsupportedOperationException(
"enableBufferingIncomingMessages not implemented.");
169 throw new UnsupportedOperationException(
"disableBufferingIncomingMessages not implemented.");
TaskQueueOptions setIsSerial(boolean isSerial)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
void onMessage(@Nullable ByteBuffer message, @NonNull BinaryReply reply)
void reply(@Nullable ByteBuffer reply)
void setMessageHandler(@NonNull String channel, @Nullable BinaryMessageHandler handler)
void send(@NonNull String channel, @Nullable ByteBuffer message, @Nullable BinaryReply callback)
default void enableBufferingIncomingMessages()
default TaskQueue makeBackgroundTaskQueue(TaskQueueOptions options)
default TaskQueue makeBackgroundTaskQueue()
default void setMessageHandler( @NonNull String channel, @Nullable BinaryMessageHandler handler, @Nullable TaskQueue taskQueue)
default void disableBufferingIncomingMessages()
void send(@NonNull String channel, @Nullable ByteBuffer message)