#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) |
Static Public Member Functions | |
| static NSObject< FlutterTaskQueue > * | MakeBackgroundTaskQueue () |
Definition at line 14 of file platform_message_handler_ios.h.
|
explicit |
Definition at line 40 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 96 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 44 of file platform_message_handler_ios.mm.
References flutter::ConvertMappingToNSData(), flutter::ConvertNSDataToMappingPtr(), flutter::data, flutter::PlatformMessageHandlerIos::HandlerInfo::handler, handler, message, platform_message_counter, flutter::PlatformMessageHandlerIos::HandlerInfo::task_queue, TRACE_EVENT_ASYNC_BEGIN1, and TRACE_EVENT_ASYNC_END0.
|
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 108 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 100 of file platform_message_handler_ios.mm.
|
static |
Definition at line 36 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 114 of file platform_message_handler_ios.mm.
References channel, FML_CHECK, handler, and fml::TaskRunner::RunsTasksOnCurrentThread().