| Flutter iOS Embedder |

FlutterEngine_Test.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_TEST_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_TEST_H_
7
8 #import "flutter/shell/common/shell.h"
9 #import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterEngine.h"
10 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterTextInputDelegate.h"
11 #include "flutter/shell/platform/darwin/ios/platform_view_ios.h"
12 #import "flutter/shell/platform/darwin/ios/rendering_api_selection.h"
13 #include "flutter/shell/platform/embedder/embedder.h"
14
15 @class FlutterBinaryMessengerRelay;
16
17 namespace flutter {
18 class ThreadHost;
19 }
20
21 // Category to add test-only visibility.
22 @interface FlutterEngine (Test) <FlutterBinaryMessenger>
23
24 @property(readonly, nonatomic) FlutterEngineProcTable& embedderAPI;
25 @property(readonly, nonatomic) BOOL enableEmbedderAPI;
26 @property(nonatomic, readonly) NSMutableDictionary* pluginPublications;
27 @property(nonatomic, strong) FlutterRestorationPlugin* restorationPlugin;
28
29 - (flutter::Shell&)shell;
30 - (flutter::PlatformViewIOS*)platformView;
31
32 - (void)setBinaryMessenger:(FlutterBinaryMessengerRelay*)binaryMessenger;
33 - (flutter::IOSRenderingAPI)platformViewsRenderingAPI;
34 - (void)waitForFirstFrame:(NSTimeInterval)timeout callback:(void (^)(BOOL didTimeout))callback;
35 - (FlutterEngine*)spawnWithEntrypoint:(/*nullable*/ NSString*)entrypoint
36 libraryURI:(/*nullable*/ NSString*)libraryURI
37 initialRoute:(/*nullable*/ NSString*)initialRoute
38 entrypointArgs:(/*nullable*/ NSArray<NSString*>*)entrypointArgs;
39 - (const flutter::ThreadHost&)threadHost;
40 - (void)updateDisplays;
41 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
42 performAction:(FlutterTextInputAction)action
43 withClient:(int)client;
44 - (void)sceneWillEnterForeground:(NSNotification*)notification API_AVAILABLE(ios(13.0));
45 - (void)sceneDidEnterBackground:(NSNotification*)notification API_AVAILABLE(ios(13.0));
46 - (void)applicationWillEnterForeground:(NSNotification*)notification;
47 - (void)applicationDidEnterBackground:(NSNotification*)notification;
48 - (NSString*)lookupKeyForAsset:(NSString*)asset;
49 - (NSString*)lookupKeyForAsset:(NSString*)asset fromPackage:(NSString*)package;
50
51 @end
52
53 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERENGINE_TEST_H_
FlutterEngine.h
FlutterTextInputDelegate.h
FlutterEngine(Test)
Definition: FlutterEngine_Test.h:22
FlutterTextInputView
Definition: FlutterTextInputPlugin.mm:812
FlutterBinaryMessengerRelay
Definition: FlutterBinaryMessengerRelay.h:14
FlutterEngine
Definition: FlutterEngine.h:61
FlutterRestorationPlugin
Definition: FlutterRestorationPlugin.h:13
flutter
Definition: accessibility_bridge.h:26
platform_view_ios.h
FlutterBinaryMessenger-p
Definition: FlutterBinaryMessenger.h:49
rendering_api_selection.h