#include <incoming_message_dispatcher.h>
◆ IncomingMessageDispatcher() [1/2]
◆ ~IncomingMessageDispatcher()
flutter::IncomingMessageDispatcher::~IncomingMessageDispatcher |
( |
| ) |
|
|
virtualdefault |
◆ IncomingMessageDispatcher() [2/2]
◆ EnableInputBlockingForChannel()
void flutter::IncomingMessageDispatcher::EnableInputBlockingForChannel |
( |
const std::string & |
channel | ) |
|
◆ HandleMessage()
void flutter::IncomingMessageDispatcher::HandleMessage |
( |
const FlutterDesktopMessage & |
message, |
|
|
const std::function< void(void)> & |
input_block_cb = [] {} , |
|
|
const std::function< void(void)> & |
input_unblock_cb = [] {} |
|
) |
| |
- Note
- Procedure doesn't copy all closures.
Definition at line 16 of file incoming_message_dispatcher.cc.
20 std::string channel(
message.channel);
22 auto callback_iterator = callbacks_.find(channel);
24 if (callback_iterator == callbacks_.end()) {
29 auto& callback_info = callback_iterator->second;
33 bool block_input = input_blocking_channels_.count(channel) > 0;
37 message_callback(messenger_, &
message, callback_info.second);
References FlutterDesktopMessengerSendResponse(), and message.
◆ operator=()
◆ SetMessageCallback()
void flutter::IncomingMessageDispatcher::SetMessageCallback |
( |
const std::string & |
channel, |
|
|
FlutterDesktopMessageCallback |
callback, |
|
|
void * |
user_data |
|
) |
| |
The documentation for this class was generated from the following files: