Flutter Engine
 
Loading...
Searching...
No Matches
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
14
16
17namespace flutter {
18class 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_
FlutterRestorationPlugin * restorationPlugin
NSMutableDictionary * pluginPublications
FlutterEngineProcTable & embedderAPI
Function-pointer-based versions of the APIs above.
Definition embedder.h:3704
int BOOL