5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
8#import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterEngine.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"
20#import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterEngine.h"
21#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject_Internal.h"
22#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterIndirectScribbleDelegate.h"
23#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.h"
24#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h"
25#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterRestorationPlugin.h"
26#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputDelegate.h"
27#import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.h"
28#import "flutter/shell/platform/darwin/ios/platform_view_ios.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;
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;
83 userData:(nullable
void*)userData;
#define NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_END
void(* FlutterKeyEventCallback)(bool, void *)
FlutterDartProject * project()
FlutterRestorationPlugin * restorationPlugin()
FlutterPlatformPlugin * platformPlugin()
NS_ASSUME_NONNULL_BEGIN NSString *const kFlutterEngineWillDealloc
FlutterTextInputPlugin * textInputPlugin