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