| 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
27 - (flutter::Shell&)shell;
28 - (flutter::PlatformViewIOS*)platformView;
29
30 - (void)setBinaryMessenger:(FlutterBinaryMessengerRelay*)binaryMessenger;
31 - (flutter::IOSRenderingAPI)platformViewsRenderingAPI;
32 - (void)waitForFirstFrame:(NSTimeInterval)timeout callback:(void (^)(BOOL didTimeout))callback;
33 - (FlutterEngine*)spawnWithEntrypoint:(/*nullable*/ NSString*)entrypoint
34 libraryURI:(/*nullable*/ NSString*)libraryURI
35 initialRoute:(/*nullable*/ NSString*)initialRoute
36 entrypointArgs:(/*nullable*/ NSArray<NSString*>*)entrypointArgs;
37 - (const flutter::ThreadHost&)threadHost;
38 - (void)updateDisplays;
39 - (void)flutterTextInputView:(FlutterTextInputView*)textInputView
40 performAction:(FlutterTextInputAction)action
41 withClient:(int)client;
42 - (void)sceneWillEnterForeground:(NSNotification*)notification API_AVAILABLE(ios(13.0));
43 - (void)sceneDidEnterBackground:(NSNotification*)notification API_AVAILABLE(ios(13.0));
44 - (void)applicationWillEnterForeground:(NSNotification*)notification;
45 - (void)applicationDidEnterBackground:(NSNotification*)notification;
46
47 @end
48
49 #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:811
FlutterBinaryMessengerRelay
Definition: FlutterBinaryMessengerRelay.h:14
FlutterEngine
Definition: FlutterEngine.h:61
flutter
Definition: accessibility_bridge.h:26
platform_view_ios.h
FlutterBinaryMessenger-p
Definition: FlutterBinaryMessenger.h:49
rendering_api_selection.h