The platform message response subclass for responses to messages from the embedder to the framework. Message responses are fulfilled by the framework. More...
#include <embedder_platform_message_response.h>
Public Types | |
| using | Callback = std::function< void(const uint8_t *data, size_t size)> |
Public Member Functions | |
| EmbedderPlatformMessageResponse (fml::RefPtr< fml::TaskRunner > runner, const Callback &callback) | |
| ~EmbedderPlatformMessageResponse () override | |
| Destroys the message response. Can be called on any thread. Does not execute unfulfilled callbacks. | |
Public Member Functions inherited from fml::RefCountedThreadSafe< PlatformMessageResponse > | |
| void | Release () const |
Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
| void | AddRef () const |
| bool | HasOneRef () const |
| void | AssertHasOneRef () const |
Additional Inherited Members | |
Protected Member Functions inherited from fml::RefCountedThreadSafe< PlatformMessageResponse > | |
| RefCountedThreadSafe () | |
| ~RefCountedThreadSafe () | |
Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
| RefCountedThreadSafeBase () | |
| ~RefCountedThreadSafeBase () | |
| bool | Release () const |
| void | Adopt () |
The platform message response subclass for responses to messages from the embedder to the framework. Message responses are fulfilled by the framework.
Definition at line 18 of file embedder_platform_message_response.h.
| using flutter::EmbedderPlatformMessageResponse::Callback = std::function<void(const uint8_t* data, size_t size)> |
Definition at line 20 of file embedder_platform_message_response.h.
| flutter::EmbedderPlatformMessageResponse::EmbedderPlatformMessageResponse | ( | fml::RefPtr< fml::TaskRunner > | runner, |
| const Callback & | callback | ||
| ) |
| [in] | runner | The task runner on which to execute the callback. The response will be initiated by the framework on the UI thread. |
| [in] | callback | The callback that communicates to the embedder the contents of the response sent by the framework back to the emebder. |
Definition at line 11 of file embedder_platform_message_response.cc.
|
overridedefault |
Destroys the message response. Can be called on any thread. Does not execute unfulfilled callbacks.