Flutter Engine
The Flutter Engine
|
#import <FlutterCodecs.h>
Instance Methods | |
(NSData *) | - encode: [implementation] |
(id) | - decode: [implementation] |
Instance Methods inherited from <FlutterMessageCodec> | |
(NSData *_Nullable) | - encode: |
(id _Nullable) | - decode: |
Class Methods | |
(instancetype) | + sharedInstance [implementation] |
(instancetype) | + sharedInstance |
A FlutterMessageCodec
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 values accepted by NSJSONSerialization
plus top-level nil
, NSNumber
, and NSString
.
On the Dart side, JSON messages are handled by the JSON facilities of the dart:convert
package.
Definition at line 81 of file FlutterCodecs.h.
|
implementation |
Definition at line 9 of file FlutterCodecs.mm.
|
implementation |
Definition at line 9 of file FlutterCodecs.mm.
|
implementation |
Returns a shared instance of this FlutterMessageCodec
.
Reimplemented from <FlutterMessageCodec>.
Definition at line 9 of file FlutterCodecs.mm.