Flutter Engine
The Flutter Engine
|
#include <platform_message_handler_ios.h>
Classes | |
struct | HandlerInfo |
Public Member Functions | |
PlatformMessageHandlerIos (fml::RefPtr< fml::TaskRunner > platform_task_runner) | |
void | HandlePlatformMessage (std::unique_ptr< PlatformMessage > message) override |
bool | DoesHandlePlatformMessageOnPlatformThread () const override |
void | InvokePlatformMessageResponseCallback (int response_id, std::unique_ptr< fml::Mapping > mapping) override |
void | InvokePlatformMessageEmptyResponseCallback (int response_id) override |
void | SetMessageHandler (const std::string &channel, FlutterBinaryMessageHandler handler, NSObject< FlutterTaskQueue > *task_queue) |
Public Member Functions inherited from flutter::PlatformMessageHandler | |
virtual | ~PlatformMessageHandler ()=default |
Static Public Member Functions | |
static NSObject< FlutterTaskQueue > * | MakeBackgroundTaskQueue () |
Definition at line 19 of file platform_message_handler_ios.h.
|
explicit |
Definition at line 43 of file platform_message_handler_ios.mm.
|
overridevirtual |
Returns true if the platform message will ALWAYS be dispatched to the platform thread.
Platforms that support Background Platform Channels will return false.
Implements flutter::PlatformMessageHandler.
Definition at line 99 of file platform_message_handler_ios.mm.
|
overridevirtual |
Ultimately sends the PlatformMessage to the host platform. This method is invoked on the ui thread.
Implements flutter::PlatformMessageHandler.
Definition at line 47 of file platform_message_handler_ios.mm.
|
overridevirtual |
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.
Implements flutter::PlatformMessageHandler.
Definition at line 111 of file platform_message_handler_ios.mm.
|
overridevirtual |
Performs the return procedure for an associated call to HandlePlatformMessage. This method should be thread-safe and able to be invoked on any thread.
Implements flutter::PlatformMessageHandler.
Definition at line 103 of file platform_message_handler_ios.mm.
|
static |
Definition at line 39 of file platform_message_handler_ios.mm.
void flutter::PlatformMessageHandlerIos::SetMessageHandler | ( | const std::string & | channel, |
FlutterBinaryMessageHandler | handler, | ||
NSObject< FlutterTaskQueue > * | task_queue | ||
) |
TODO(gaaclarke): This should be migrated to a lockfree datastructure.
Definition at line 117 of file platform_message_handler_ios.mm.