5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
12 #include "flutter/fml/memory/weak_ptr.h"
13 #include "flutter/fml/task_runner.h"
14 #include "flutter/lib/ui/window/pointer_data_packet.h"
15 #include "flutter/lib/ui/window/viewport_metrics.h"
16 #include "flutter/shell/common/platform_view.h"
17 #include "flutter/shell/common/rasterizer.h"
18 #include "flutter/shell/common/shell.h"
20 #include "flutter/shell/platform/embedder/embedder.h"
40 @property(nonatomic, assign) BOOL manuallyRegisteredToScene;
42 - (void)updateViewportMetrics:(
flutter::ViewportMetrics)viewportMetrics;
43 - (void)dispatchPointerDataPacket:(std::unique_ptr<
flutter::PointerDataPacket>)packet;
44 - (BOOL)platformViewShouldAcceptTouchAtTouchBeganLocation:(
flutter::PointData)location
45 viewId:(uint64_t)viewId;
47 - (void)installFirstFrameCallback:(
void (^)(
void))block;
48 - (void)enableSemantics:(BOOL)enabled withFlags:(int64_t)flags;
49 - (void)notifyViewCreated;
50 - (void)notifyViewDestroyed;
52 - (
flutter::Rasterizer::Screenshot)screenshot:(
flutter::Rasterizer::ScreenshotType)type
53 base64Encode:(
bool)base64Encode;
59 - (void)launchEngine:(nullable NSString*)entrypoint
60 libraryURI:(nullable NSString*)libraryOrNil
61 entrypointArgs:(nullable NSArray<NSString*>*)entrypointArgs;
67 - (BOOL)createShell:(nullable NSString*)entrypoint
68 libraryURI:(nullable NSString*)libraryOrNil
69 initialRoute:(nullable NSString*)initialRoute NS_SWIFT_UI_ACTOR;
71 - (void)notifyLowMemory;
75 - (void)waitForFirstFrame:(NSTimeInterval)timeout callback:(
void (^)(BOOL didTimeout))callback;
86 - (
FlutterEngine*)spawnWithEntrypoint:(nullable NSString*)entrypoint
87 libraryURI:(nullable NSString*)libraryURI
88 initialRoute:(nullable NSString*)initialRoute
89 entrypointArgs:(nullable NSArray<NSString*>*)entrypointArgs
96 - (void)sendKeyEvent:(const FlutterKeyEvent&)event
97 callback:(nullable FlutterKeyEventCallback)callback
98 userData:(nullable
void*)userData;
105 - (int64_t)engineIdentifier;
116 + (nullable
FlutterEngine*)engineForIdentifier:(int64_t)identifier;
124 - (BOOL)performImplicitEngineCallback;
132 - (void)sendDeepLinkToFramework:(NSURL*)url completionHandler:(
void (^)(BOOL success))completion;
134 - (void)onStatusBarTap;
#define NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_END
FlutterTextInputPlugin * textInputPlugin
FlutterRestorationPlugin * restorationPlugin