|
Flutter Linux Embedder
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_SHELL_PLATFORM_COMMON_INCOMING_MESSAGE_DISPATCHER_H_
6 #define FLUTTER_SHELL_PLATFORM_COMMON_INCOMING_MESSAGE_DISPATCHER_H_
42 const std::function<
void(
void)>& input_block_cb = [] {},
43 const std::function<void(
void)>& input_unblock_cb = [] {});
68 std::map<std::string, std::pair<FlutterDesktopMessageCallback, void*>>
73 std::set<std::string> input_blocking_channels_;
78 #endif // FLUTTER_SHELL_PLATFORM_COMMON_INCOMING_MESSAGE_DISPATCHER_H_
IncomingMessageDispatcher & operator=(IncomingMessageDispatcher const &)=delete
FlKeyEvent uint64_t FlKeyResponderAsyncCallback gpointer user_data
void HandleMessage(const FlutterDesktopMessage &message, const std::function< void(void)> &input_block_cb=[] {}, const std::function< void(void)> &input_unblock_cb=[] {})
virtual ~IncomingMessageDispatcher()
void SetMessageCallback(const std::string &channel, FlutterDesktopMessageCallback callback, void *user_data)
struct FlutterDesktopMessenger * FlutterDesktopMessengerRef
IncomingMessageDispatcher(FlutterDesktopMessengerRef messenger)
void EnableInputBlockingForChannel(const std::string &channel)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
void(* FlutterDesktopMessageCallback)(FlutterDesktopMessengerRef, const FlutterDesktopMessage *, void *)