5#ifndef FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_BINARY_MESSENGER_IMPL_H_
6#define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_BINARY_MESSENGER_IMPL_H_
30 void Send(
const std::string& channel,
45 std::map<std::string, BinaryMessageHandler> handlers_;
virtual ~BinaryMessengerImpl()
BinaryMessengerImpl(FlutterDesktopMessengerRef core_messenger)
BinaryMessengerImpl & operator=(BinaryMessengerImpl const &)=delete
BinaryMessengerImpl(BinaryMessengerImpl const &)=delete
void SetMessageHandler(const std::string &channel, BinaryMessageHandler handler) override
void Send(const std::string &channel, const uint8_t *message, size_t message_size, BinaryReply reply) const override
std::function< void(const uint8_t *message, size_t message_size, BinaryReply reply)> BinaryMessageHandler
std::function< void(const uint8_t *reply, size_t reply_size)> BinaryReply