5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_PLATFORM_VIEW_IOS_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_PLATFORM_VIEW_IOS_H_
10 #include "flutter/fml/closure.h"
11 #include "flutter/fml/macros.h"
12 #include "flutter/shell/common/platform_view.h"
43 const std::shared_ptr<IOSContext>& context,
45 const flutter::TaskRunners& task_runners);
48 PlatformView::Delegate& delegate,
51 const flutter::TaskRunners& task_runners,
52 const std::shared_ptr<fml::ConcurrentTaskRunner>& worker_task_runner,
53 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch);
111 flutter::SemanticsNodeUpdates update,
112 flutter::CustomAccessibilityActionUpdates actions) override;
125 const std::vector<std::
string>& supported_locale_data) override;
131 return platform_message_handler_;
135 return platform_message_handler_;
146 class ScopedObserver {
150 void reset(id<NSObject> observer);
151 ScopedObserver(
const ScopedObserver&) =
delete;
152 ScopedObserver& operator=(
const ScopedObserver&) =
delete;
155 id<NSObject> observer_ = nil;
161 std::mutex ios_surface_mutex_;
162 std::unique_ptr<IOSSurface> ios_surface_;
163 std::shared_ptr<IOSContext> ios_context_;
165 std::unique_ptr<AccessibilityBridge> accessibility_bridge_;
166 ScopedObserver dealloc_view_controller_observer_;
167 std::vector<std::string> platform_resolved_locale_;
168 std::shared_ptr<PlatformMessageHandlerIos> platform_message_handler_;
Manages the lifetime of the on-screen and off-screen rendering contexts on iOS. On-screen contexts ar...