#include <binary_messenger_impl.h>
Definition at line 19 of file binary_messenger_impl.h.
◆ BinaryMessengerImpl() [1/2]
◆ ~BinaryMessengerImpl()
flutter::BinaryMessengerImpl::~BinaryMessengerImpl |
( |
| ) |
|
|
virtualdefault |
◆ BinaryMessengerImpl() [2/2]
◆ operator=()
◆ Send()
void flutter::BinaryMessengerImpl::Send |
( |
const std::string & |
channel, |
|
|
const uint8_t * |
message, |
|
|
size_t |
message_size, |
|
|
BinaryReply |
reply |
|
) |
| const |
|
overridevirtual |
Implements flutter::BinaryMessenger.
Definition at line 87 of file core_implementations.cc.
91 if (reply ==
nullptr) {
99 auto captures =
new Captures();
100 captures->reply = reply;
102 auto message_reply = [](
const uint8_t* data,
size_t data_size,
104 auto captures =
reinterpret_cast<Captures*
>(
user_data);
105 captures->reply(data, data_size);
109 messenger_, channel.c_str(), message, message_size, message_reply,
References FlutterDesktopMessengerSend(), FlutterDesktopMessengerSendWithReply(), result, and user_data.
◆ SetMessageHandler()
void flutter::BinaryMessengerImpl::SetMessageHandler |
( |
const std::string & |
channel, |
|
|
BinaryMessageHandler |
handler |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files: