#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()
- Note
- Procedure doesn't copy all closures.
Definition at line 16 of file incoming_message_dispatcher.cc.
19 {
20 std::string channel(
message.channel);
21
22 auto callback_iterator = callbacks_.find(channel);
23
24 if (callback_iterator == callbacks_.end()) {
26 nullptr, 0);
27 return;
28 }
29 auto& callback_info = callback_iterator->second;
31
32
33 bool block_input = input_blocking_channels_.count(channel) > 0;
34 if (block_input) {
35 input_block_cb();
36 }
37 message_callback(messenger_, &
message, callback_info.second);
38 if (block_input) {
39 input_unblock_cb();
40 }
41}
void(* FlutterDesktopMessageCallback)(FlutterDesktopMessengerRef, const FlutterDesktopMessage *, void *)
void FlutterDesktopMessengerSendResponse(FlutterDesktopMessengerRef messenger, const FlutterDesktopMessageResponseHandle *handle, const uint8_t *data, size_t data_length)
◆ operator=()
◆ SetMessageCallback()
void flutter::IncomingMessageDispatcher::SetMessageCallback |
( |
const std::string & |
channel, |
|
|
FlutterDesktopMessageCallback |
callback, |
|
|
void * |
user_data |
|
) |
| |
Definition at line 43 of file incoming_message_dispatcher.cc.
46 {
48 callbacks_.erase(channel);
49 return;
50 }
52}
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
The documentation for this class was generated from the following files: