Flutter Engine
The Flutter Engine
|
#include <platform_message_handler.h>
Public Member Functions | |
virtual | ~PlatformMessageHandler ()=default |
virtual void | HandlePlatformMessage (std::unique_ptr< PlatformMessage > message)=0 |
virtual bool | DoesHandlePlatformMessageOnPlatformThread () const =0 |
virtual void | InvokePlatformMessageResponseCallback (int response_id, std::unique_ptr< fml::Mapping > mapping)=0 |
virtual void | InvokePlatformMessageEmptyResponseCallback (int response_id)=0 |
An interface over the ability to handle PlatformMessages that are being sent from Flutter to the host platform.
Definition at line 18 of file platform_message_handler.h.
|
virtualdefault |
|
pure virtual |
Returns true if the platform message will ALWAYS be dispatched to the platform thread.
Platforms that support Background Platform Channels will return false.
Implemented in flutter::PlatformViewEmbedder::EmbedderPlatformMessageHandler, flutter::PlatformMessageHandlerAndroid, and flutter::PlatformMessageHandlerIos.
|
pure virtual |
Ultimately sends the PlatformMessage to the host platform. This method is invoked on the ui thread.
Implemented in flutter::PlatformViewEmbedder::EmbedderPlatformMessageHandler, flutter::PlatformMessageHandlerAndroid, and flutter::PlatformMessageHandlerIos.
|
pure virtual |
Performs the return procedure for an associated call to HandlePlatformMessage where there is no return value. This method should be thread-safe and able to be invoked on any thread.
Implemented in flutter::PlatformViewEmbedder::EmbedderPlatformMessageHandler, flutter::PlatformMessageHandlerAndroid, and flutter::PlatformMessageHandlerIos.
|
pure virtual |
Performs the return procedure for an associated call to HandlePlatformMessage. This method should be thread-safe and able to be invoked on any thread.
Implemented in flutter::PlatformViewEmbedder::EmbedderPlatformMessageHandler, flutter::PlatformMessageHandlerAndroid, and flutter::PlatformMessageHandlerIos.