|
Flutter Windows Embedder
|
|
Go to the documentation of this file.
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_
17 template <
typename T = EncodableValue>
37 template <
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;
77 #endif // FLUTTER_SHELL_PLATFORM_COMMON_CLIENT_WRAPPER_INCLUDE_FLUTTER_EVENT_STREAM_HANDLER_H_
StreamHandlerError(const std::string &error_code, const std::string &error_message, std::unique_ptr< T > &&error_details)
std::unique_ptr< StreamHandlerError< T > > OnCancel(const T *arguments)
virtual std::unique_ptr< StreamHandlerError< T > > OnListenInternal(const T *arguments, std::unique_ptr< EventSink< T >> &&events)=0
StreamHandler & operator=(StreamHandler const &)=delete
virtual ~StreamHandler()=default
std::unique_ptr< StreamHandlerError< T > > OnListen(const T *arguments, std::unique_ptr< EventSink< T >> &&events)
virtual std::unique_ptr< StreamHandlerError< T > > OnCancelInternal(const T *arguments)=0
const std::string error_code
const std::unique_ptr< T > error_details
const std::string error_message