Flutter Engine
The Flutter Engine
|
Public Member Functions | |
ByteBuffer | encodeMessage (@Nullable Object message) |
Object | decodeMessage (@Nullable ByteBuffer message) |
Public Member Functions inherited from io.flutter.plugin.common.MessageCodec< Object > | |
ByteBuffer | encodeMessage ( @Nullable T message) |
T | decodeMessage ( @Nullable ByteBuffer message) |
Static Public Attributes | |
static final JSONMessageCodec | INSTANCE = new JSONMessageCodec() |
A MessageCodec
using UTF-8 encoded JSON messages.
This codec is guaranteed to be compatible with the corresponding JSONMessageCodec on the Dart side. These parts of the Flutter SDK are evolved synchronously.
Supports the same Java values as JSONObject#wrap(Object)
.
On the Dart side, JSON messages are handled by the JSON facilities of the dart:convert package.
Definition at line 25 of file JSONMessageCodec.java.
|
inline |
Definition at line 47 of file JSONMessageCodec.java.
|
inline |
Definition at line 33 of file JSONMessageCodec.java.
|
static |
Definition at line 27 of file JSONMessageCodec.java.