#include <flutter_desktop_messenger.h>
Public Member Functions | |
FlutterDesktopMessenger ()=default | |
FlutterDesktopMessengerRef | ToRef () |
Convert to FlutterDesktopMessengerRef. More... | |
flutter::FlutterWindowsEngine * | GetEngine () const |
Getter for the engine field. More... | |
void | SetEngine (flutter::FlutterWindowsEngine *arg_engine) |
FlutterDesktopMessenger * | AddRef () |
void | Release () |
std::mutex & | GetMutex () |
Static Public Member Functions | |
static FlutterDesktopMessenger * | FromRef (FlutterDesktopMessengerRef ref) |
Convert from FlutterDesktopMessengerRef. More... | |
A messenger object used to invoke platform messages.
On Windows, the message handler is essentially the |FlutterWindowsEngine|, this allows a handle to the |FlutterWindowsEngine| that will become invalidated if the |FlutterWindowsEngine| is destroyed.
Definition at line 23 of file flutter_desktop_messenger.h.
|
default |
|
inline |
Increments the reference count.
Thread-safe.
Definition at line 50 of file flutter_desktop_messenger.h.
Referenced by FlutterDesktopMessengerAddRef().
|
inlinestatic |
Convert from FlutterDesktopMessengerRef.
Definition at line 33 of file flutter_desktop_messenger.h.
Referenced by FlutterDesktopMessengerAddRef(), FlutterDesktopMessengerIsAvailable(), FlutterDesktopMessengerLock(), FlutterDesktopMessengerRelease(), FlutterDesktopMessengerSendResponse(), FlutterDesktopMessengerSendWithReply(), FlutterDesktopMessengerSetCallback(), and FlutterDesktopMessengerUnlock().
|
inline |
Getter for the engine field.
Definition at line 38 of file flutter_desktop_messenger.h.
Referenced by FlutterDesktopMessengerIsAvailable(), FlutterDesktopMessengerSendResponse(), FlutterDesktopMessengerSendWithReply(), and FlutterDesktopMessengerSetCallback().
|
inline |
Returns the mutex associated with the |FlutterDesktopMessenger|.
This mutex is used to synchronize reading or writing state inside the |FlutterDesktopMessenger| (ie |engine|).
Definition at line 70 of file flutter_desktop_messenger.h.
Referenced by FlutterDesktopMessengerLock(), and FlutterDesktopMessengerUnlock().
|
inline |
Decrements the reference count and deletes the object if the count has gone to zero.
Thread-safe.
Definition at line 59 of file flutter_desktop_messenger.h.
Referenced by FlutterDesktopMessengerRelease().
|
inline |
Setter for the engine field. Thread-safe.
Definition at line 42 of file flutter_desktop_messenger.h.
|
inline |
Convert to FlutterDesktopMessengerRef.
Definition at line 28 of file flutter_desktop_messenger.h.
Referenced by FlutterDesktopMessengerAddRef().