Flutter Engine
FlutterEngine_Internal.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
7 
8 #import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterEngine.h"
9 
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"
17 #import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterEngine.h"
18 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterDartProject_Internal.h"
19 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformPlugin.h"
20 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h"
21 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputDelegate.h"
22 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputPlugin.h"
23 #import "flutter/shell/platform/darwin/ios/platform_view_ios.h"
24 
25 @interface FlutterEngine () <FlutterViewEngineDelegate>
26 
27 - (flutter::Shell&)shell;
28 
29 - (void)updateViewportMetrics:(flutter::ViewportMetrics)viewportMetrics;
30 - (void)dispatchPointerDataPacket:(std::unique_ptr<flutter::PointerDataPacket>)packet;
31 
32 - (fml::RefPtr<fml::TaskRunner>)platformTaskRunner;
33 - (fml::RefPtr<fml::TaskRunner>)RasterTaskRunner;
34 
35 - (fml::WeakPtr<flutter::PlatformView>)platformView;
36 
37 - (flutter::Rasterizer::Screenshot)screenshot:(flutter::Rasterizer::ScreenshotType)type
38  base64Encode:(bool)base64Encode;
39 
40 - (FlutterPlatformPlugin*)platformPlugin;
41 - (flutter::FlutterPlatformViewsController*)platformViewsController;
43 - (void)launchEngine:(NSString*)entrypoint libraryURI:(NSString*)libraryOrNil;
44 - (BOOL)createShell:(NSString*)entrypoint
45  libraryURI:(NSString*)libraryOrNil
46  initialRoute:(NSString*)initialRoute;
47 - (void)attachView;
48 - (void)notifyLowMemory;
49 - (flutter::PlatformViewIOS*)iosPlatformView;
50 
51 @end
52 
53 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_INTERNAL_H_
FlutterTextInputPlugin * textInputPlugin
Definition: ref_ptr.h:252
Definition: ascii_trie.cc:9