5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
10 #include "flutter/fml/memory/weak_ptr.h"
11 #include "flutter/fml/task_runner.h"
12 #include "flutter/lib/ui/window/pointer_data_packet.h"
13 #include "flutter/lib/ui/window/viewport_metrics.h"
14 #include "flutter/shell/common/platform_view.h"
15 #include "flutter/shell/common/rasterizer.h"
16 #include "flutter/shell/common/shell.h"
18 #include "flutter/shell/platform/embedder/embedder.h"
38 - (void)updateViewportMetrics:(
flutter::ViewportMetrics)viewportMetrics;
39 - (void)dispatchPointerDataPacket:(std::unique_ptr<
flutter::PointerDataPacket>)packet;
41 - (fml::RefPtr<fml::TaskRunner>)platformTaskRunner;
42 - (fml::RefPtr<fml::TaskRunner>)uiTaskRunner;
43 - (fml::RefPtr<fml::TaskRunner>)rasterTaskRunner;
45 - (fml::WeakPtr<flutter::PlatformView>)platformView;
47 - (
flutter::Rasterizer::Screenshot)screenshot:(
flutter::Rasterizer::ScreenshotType)type
48 base64Encode:(
bool)base64Encode;
51 - (std::shared_ptr<flutter::FlutterPlatformViewsController>&)platformViewsController;
54 - (void)launchEngine:(nullable NSString*)entrypoint
55 libraryURI:(nullable NSString*)libraryOrNil
56 entrypointArgs:(nullable NSArray<NSString*>*)entrypointArgs;
57 - (BOOL)createShell:(nullable NSString*)entrypoint
58 libraryURI:(nullable NSString*)libraryOrNil
59 initialRoute:(nullable NSString*)initialRoute;
61 - (void)notifyLowMemory;
62 - (
flutter::PlatformViewIOS*)iosPlatformView;
64 - (void)waitForFirstFrame:(NSTimeInterval)timeout callback:(
void (^)(BOOL didTimeout))callback;
72 - (
FlutterEngine*)spawnWithEntrypoint:(nullable NSString*)entrypoint
73 libraryURI:(nullable NSString*)libraryURI
74 initialRoute:(nullable NSString*)initialRoute
75 entrypointArgs:(nullable NSArray<NSString*>*)entrypointArgs;
81 - (void)sendKeyEvent:(const FlutterKeyEvent&)event
82 callback:(nullable FlutterKeyEventCallback)callback
83 userData:(nullable
void*)userData;
90 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_