5#ifndef FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_EVENT_STREAM_HANDLER_H_
6#define FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_EVENT_STREAM_HANDLER_H_
17template <
typename T = EncodableValue>
37template <
typename T = EncodableValue>
51 std::unique_ptr<StreamHandlerError<T>>
OnListen(
60 std::unique_ptr<StreamHandlerError<T>>
OnCancel(
const T* arguments) {
72 const T* arguments) = 0;
std::unique_ptr< StreamHandlerError< T > > OnCancel(const T *arguments)
virtual std::unique_ptr< StreamHandlerError< T > > OnCancelInternal(const T *arguments)=0
std::unique_ptr< StreamHandlerError< T > > OnListen(const T *arguments, std::unique_ptr< EventSink< T > > &&events)
virtual ~StreamHandler()=default
virtual std::unique_ptr< StreamHandlerError< T > > OnListenInternal(const T *arguments, std::unique_ptr< EventSink< T > > &&events)=0
StreamHandler & operator=(StreamHandler const &)=delete
StreamHandler(StreamHandler const &)=delete
const std::string error_code
const std::string error_message
StreamHandlerError(const std::string &error_code, const std::string &error_message, std::unique_ptr< T > &&error_details)
const std::unique_ptr< T > error_details