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