Flutter Engine
flutter::StreamHandler< T > Class Template Referenceabstract

#include <event_stream_handler.h>

Inheritance diagram for flutter::StreamHandler< T >:
flutter::StreamHandlerFunctions< T >

Public Member Functions

 StreamHandler ()=default
 
virtual ~StreamHandler ()=default
 
 StreamHandler (StreamHandler const &)=delete
 
StreamHandleroperator= (StreamHandler const &)=delete
 
std::unique_ptr< StreamHandlerError< T > > OnListen (const T *arguments, std::unique_ptr< EventSink< T >> &&events)
 
std::unique_ptr< StreamHandlerError< T > > OnCancel (const T *arguments)
 

Protected Member Functions

virtual std::unique_ptr< StreamHandlerError< T > > OnListenInternal (const T *arguments, std::unique_ptr< EventSink< T >> &&events)=0
 
virtual std::unique_ptr< StreamHandlerError< T > > OnCancelInternal (const T *arguments)=0
 

Detailed Description

template<typename T = EncodableValue>
class flutter::StreamHandler< T >

Definition at line 35 of file event_stream_handler.h.

Constructor & Destructor Documentation

◆ StreamHandler() [1/2]

template<typename T = EncodableValue>
flutter::StreamHandler< T >::StreamHandler ( )
default

◆ ~StreamHandler()

template<typename T = EncodableValue>
virtual flutter::StreamHandler< T >::~StreamHandler ( )
virtualdefault

◆ StreamHandler() [2/2]

template<typename T = EncodableValue>
flutter::StreamHandler< T >::StreamHandler ( StreamHandler< T > const &  )
delete

Member Function Documentation

◆ OnCancel()

template<typename T = EncodableValue>
std::unique_ptr<StreamHandlerError<T> > flutter::StreamHandler< T >::OnCancel ( const T *  arguments)
inline

Definition at line 57 of file event_stream_handler.h.

57  {
58  return OnCancelInternal(arguments);
59  }
virtual std::unique_ptr< StreamHandlerError< T > > OnCancelInternal(const T *arguments)=0

◆ OnCancelInternal()

template<typename T = EncodableValue>
virtual std::unique_ptr<StreamHandlerError<T> > flutter::StreamHandler< T >::OnCancelInternal ( const T *  arguments)
protectedpure virtual

◆ OnListen()

template<typename T = EncodableValue>
std::unique_ptr<StreamHandlerError<T> > flutter::StreamHandler< T >::OnListen ( const T *  arguments,
std::unique_ptr< EventSink< T >> &&  events 
)
inline

Definition at line 48 of file event_stream_handler.h.

50  {
51  return OnListenInternal(arguments, std::move(events));
52  }
virtual std::unique_ptr< StreamHandlerError< T > > OnListenInternal(const T *arguments, std::unique_ptr< EventSink< T >> &&events)=0

◆ OnListenInternal()

template<typename T = EncodableValue>
virtual std::unique_ptr<StreamHandlerError<T> > flutter::StreamHandler< T >::OnListenInternal ( const T *  arguments,
std::unique_ptr< EventSink< T >> &&  events 
)
protectedpure virtual

◆ operator=()

template<typename T = EncodableValue>
StreamHandler& flutter::StreamHandler< T >::operator= ( StreamHandler< T > const &  )
delete

The documentation for this class was generated from the following file: