FlutterStandardMessageCodec
@interface FlutterStandardMessageCodec : NSObject <FlutterMessageCodec>
A FlutterMessageCodec using the Flutter standard binary encoding.
This codec is guaranteed to be compatible with the corresponding StandardMessageCodec on the Dart side. These parts of the Flutter SDK are evolved synchronously.
Supported messages are acyclic values of these forms:
nilorNSNullNSNumber(including their representation of Boolean values)NSStringFlutterStandardTypedDataNSArrayof supported valuesNSDictionarywith supported keys and values
On the Dart side, these values are represented as follows:
nilorNSNull: nullNSNumber:bool,int, ordouble, depending on the contained value.NSString:StringFlutterStandardTypedData:Uint8List,Int32List,Int64List, orFloat64ListNSArray:ListNSDictionary:Map
-
Create a
FlutterStandardMessageCodecwho will read and write to \p readerWriter.Declaration
Objective-C
+ (nonnull instancetype)codecWithReaderWriter: (nonnull FlutterStandardReaderWriter *)readerWriter;
View on GitHub
Install in Dash
FlutterStandardMessageCodec Class Reference