Flutter Engine
The Flutter Engine
|
Public Member Functions | |
StandardMethodCodec (@NonNull StandardMessageCodec messageCodec) | |
ByteBuffer | encodeMethodCall (@NonNull MethodCall methodCall) |
MethodCall | decodeMethodCall (@NonNull ByteBuffer methodCall) |
ByteBuffer | encodeSuccessEnvelope (@NonNull Object result) |
ByteBuffer | encodeErrorEnvelope ( @NonNull String errorCode, @NonNull String errorMessage, @NonNull Object errorDetails) |
ByteBuffer | encodeErrorEnvelopeWithStacktrace ( @NonNull String errorCode, @NonNull String errorMessage, @NonNull Object errorDetails, @NonNull String errorStacktrace) |
Object | decodeEnvelope (@NonNull ByteBuffer envelope) |
Public Member Functions inherited from io.flutter.plugin.common.MethodCodec | |
ByteBuffer | encodeMethodCall (@NonNull MethodCall methodCall) |
MethodCall | decodeMethodCall (@NonNull ByteBuffer methodCall) |
ByteBuffer | encodeSuccessEnvelope (@Nullable Object result) |
ByteBuffer | encodeErrorEnvelope ( @NonNull String errorCode, @Nullable String errorMessage, @Nullable Object errorDetails) |
ByteBuffer | encodeErrorEnvelopeWithStacktrace ( @NonNull String errorCode, @Nullable String errorMessage, @Nullable Object errorDetails, @Nullable String errorStacktrace) |
Object | decodeEnvelope (@NonNull ByteBuffer envelope) |
Static Public Attributes | |
static final StandardMethodCodec | INSTANCE |
A MethodCodec
using the Flutter standard binary encoding.
This codec is guaranteed to be compatible with the corresponding StandardMethodCodec on the Dart side. These parts of the Flutter SDK are evolved synchronously.
Values supported as method arguments and result payloads are those supported by StandardMessageCodec
.
Definition at line 23 of file StandardMethodCodec.java.
|
inline |
Creates a new method codec based on the specified message codec.
Definition at line 29 of file StandardMethodCodec.java.
|
inline |
Decodes a result envelope from binary.
envelope | the binary encoding of a result envelope as a ByteBuffer . |
FlutterException | if the envelope was an error envelope. |
Implements io.flutter.plugin.common.MethodCodec.
Definition at line 109 of file StandardMethodCodec.java.
|
inline |
Decodes a message call from binary.
methodCall | the binary encoding of the method call as a ByteBuffer . |
MethodCall
representation of the bytes between the given buffer's current position and its limit. Implements io.flutter.plugin.common.MethodCodec.
Definition at line 46 of file StandardMethodCodec.java.
|
inline |
Definition at line 69 of file StandardMethodCodec.java.
|
inline |
Definition at line 87 of file StandardMethodCodec.java.
|
inline |
Encodes a message call into binary.
methodCall | a MethodCall . |
ByteBuffer
containing the encoding between position 0 and the current position. Implements io.flutter.plugin.common.MethodCodec.
Definition at line 35 of file StandardMethodCodec.java.
|
inline |
Definition at line 58 of file StandardMethodCodec.java.
|
static |
Definition at line 24 of file StandardMethodCodec.java.