5#ifndef FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_EVENT_SINK_H_
6#define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_EVENT_SINK_H_
14template <
typename T = EncodableValue>
31 void Error(
const std::string& error_code,
32 const std::string& error_message,
33 const T& error_details) {
38 void Error(
const std::string& error_code,
39 const std::string& error_message =
"") {
53 const std::string& error_message,
54 const T* error_details) = 0;
virtual void EndOfStreamInternal()=0
EventSink & operator=(EventSink const &)=delete
void Error(const std::string &error_code, const std::string &error_message="")
virtual void ErrorInternal(const std::string &error_code, const std::string &error_message, const T *error_details)=0
virtual ~EventSink()=default
void Error(const std::string &error_code, const std::string &error_message, const T &error_details)
virtual void SuccessInternal(const T *event=nullptr)=0
EventSink(EventSink const &)=delete
void Success(const T &event)