Flutter Engine
The Flutter Engine
Classes | Typedefs | Functions
flutter::internal Namespace Reference

Classes

class  ReplyManager
 

Typedefs

using EncodableValueVariant = std::variant< std::monostate, bool, int32_t, int64_t, double, std::string, std::vector< uint8_t >, std::vector< int32_t >, std::vector< int64_t >, std::vector< double >, EncodableList, EncodableMap, CustomEncodableValue, std::vector< float > >
 

Functions

void ResizeChannel (BinaryMessenger *messenger, std::string name, int new_size)
 
void SetChannelWarnsOnOverflow (BinaryMessenger *messenger, std::string name, bool warns)
 

Typedef Documentation

◆ EncodableValueVariant

using flutter::internal::EncodableValueVariant = typedef std::variant<std::monostate, bool, int32_t, int64_t, double, std::string, std::vector<uint8_t>, std::vector<int32_t>, std::vector<int64_t>, std::vector<double>, EncodableList, EncodableMap, CustomEncodableValue, std::vector<float> >

Definition at line 103 of file encodable_value.h.

Function Documentation

◆ ResizeChannel()

void flutter::internal::ResizeChannel ( BinaryMessenger messenger,
std::string  name,
int  new_size 
)

Definition at line 181 of file core_implementations.cc.

181 {
182 auto control_channel = std::make_unique<MethodChannel<EncodableValue>>(
183 messenger, kControlChannelName, &StandardMethodCodec::GetInstance());
184
185 // The deserialization logic handles only 32 bits values, see
186 // https://github.com/flutter/engine/blob/93e8901490e78c7ba7e319cce4470d9c6478c6dc/lib/ui/channel_buffers.dart#L495.
187 control_channel->InvokeMethod(
188 kResizeMethod, std::make_unique<EncodableValue>(EncodableList{
190 EncodableValue(static_cast<int32_t>(new_size)),
191 }));
192}
static NSString *const kResizeMethod
static constexpr char kControlChannelName[]
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32
std::vector< EncodableValue > EncodableList

◆ SetChannelWarnsOnOverflow()

void flutter::internal::SetChannelWarnsOnOverflow ( BinaryMessenger messenger,
std::string  name,
bool  warns 
)

Definition at line 194 of file core_implementations.cc.

196 {
197 auto control_channel = std::make_unique<MethodChannel<EncodableValue>>(
198 messenger, kControlChannelName, &StandardMethodCodec::GetInstance());
199
200 control_channel->InvokeMethod(kOverflowMethod,
201 std::make_unique<EncodableValue>(EncodableList{
203 EncodableValue(!warns),
204 }));
205}
static NSString *const kOverflowMethod