Flutter iOS Embedder
FlutterEngine.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_HEADERS_FLUTTERENGINE_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_HEADERS_FLUTTERENGINE_H_
7 
8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h>
10 
12 #import "FlutterDartProject.h"
13 #import "FlutterMacros.h"
14 #import "FlutterPlugin.h"
15 #import "FlutterTexture.h"
16 
18 
20 
21 /**
22  * The dart entrypoint that is associated with `main()`. This is to be used as an argument to the
23  * `runWithEntrypoint*` methods.
24  */
25 // NOLINTNEXTLINE(readability-identifier-naming)
26 extern NSString* const FlutterDefaultDartEntrypoint;
27 
28 /**
29  * The default Flutter initial route ("/").
30  */
31 // NOLINTNEXTLINE(readability-identifier-naming)
32 extern NSString* const FlutterDefaultInitialRoute;
33 
34 /**
35  * The FlutterEngine class coordinates a single instance of execution for a
36  * `FlutterDartProject`. It may have zero or one `FlutterViewController` at a
37  * time, which can be specified via `-setViewController:`.
38  * `FlutterViewController`'s `initWithEngine` initializer will automatically call
39  * `-setViewController:` for itself.
40  *
41  * A FlutterEngine can be created independently of a `FlutterViewController` for
42  * headless execution. It can also persist across the lifespan of multiple
43  * `FlutterViewController` instances to maintain state and/or asynchronous tasks
44  * (such as downloading a large file).
45  *
46  * A FlutterEngine can also be used to prewarm the Dart execution environment and reduce the
47  * latency of showing the Flutter screen when a `FlutterViewController` is created and presented.
48  * See https://docs.flutter.cn/development/add-to-app/performance for more details on loading
49  * performance.
50  *
51  * Alternatively, you can simply create a new `FlutterViewController` with only a
52  * `FlutterDartProject`. That `FlutterViewController` will internally manage its
53  * own instance of a FlutterEngine, but will not guarantee survival of the engine
54  * beyond the life of the ViewController.
55  *
56  * A newly initialized FlutterEngine will not actually run a Dart Isolate until
57  * either `-runWithEntrypoint:` or `-runWithEntrypoint:libraryURI` is invoked.
58  * One of these methods must be invoked before calling `-setViewController:`.
59  *
60  * `FlutterEngine` instances must be created and run on the main thread. The engine adopts the
61  * thread that runs it as its platform thread, which is also used for executing application UI code
62  * written in Dart. Running an engine on a background queue is not supported, apps and app
63  * extensions must dispatch to the main queue.
64  */
66 @interface FlutterEngine : NSObject <FlutterPluginRegistry>
67 
68 /**
69  * Default initializer for a FlutterEngine.
70  *
71  * Threads created by this FlutterEngine will appear as "FlutterEngine #" in
72  * Instruments. The prefix can be customized using `initWithName`.
73  *
74  * The engine will execute the project located in the bundle with the identifier
75  * "io.flutter.flutter.app" (the default for Flutter projects).
76  *
77  * A newly initialized engine will not run until either `-runWithEntrypoint:` or
78  * `-runWithEntrypoint:libraryURI:` is called.
79  *
80  * FlutterEngine created with this method will have allowHeadlessExecution set to `YES`.
81  * This means that the engine will continue to run regardless of whether a `FlutterViewController`
82  * is attached to it or not, until `-destroyContext:` is called or the process finishes.
83  */
84 - (instancetype)init NS_SWIFT_UI_ACTOR;
85 
86 /**
87  * Initialize this FlutterEngine.
88  *
89  * The engine will execute the project located in the bundle with the identifier
90  * "io.flutter.flutter.app" (the default for Flutter projects).
91  *
92  * A newly initialized engine will not run until either `-runWithEntrypoint:` or
93  * `-runWithEntrypoint:libraryURI:` is called.
94  *
95  * FlutterEngine created with this method will have allowHeadlessExecution set to `YES`.
96  * This means that the engine will continue to run regardless of whether a `FlutterViewController`
97  * is attached to it or not, until `-destroyContext:` is called or the process finishes.
98  *
99  * @param labelPrefix The label prefix used to identify threads for this instance. Should
100  * be unique across FlutterEngine instances, and is used in instrumentation to label
101  * the threads used by this FlutterEngine.
102  */
103 - (instancetype)initWithName:(NSString*)labelPrefix NS_SWIFT_UI_ACTOR;
104 
105 /**
106  * Initialize this FlutterEngine with a `FlutterDartProject`.
107  *
108  * If the FlutterDartProject is not specified, the FlutterEngine will attempt to locate
109  * the project in a default location (the flutter_assets folder in the iOS application
110  * bundle).
111  *
112  * A newly initialized engine will not run the `FlutterDartProject` until either
113  * `-runWithEntrypoint:` or `-runWithEntrypoint:libraryURI:` is called.
114  *
115  * FlutterEngine created with this method will have allowHeadlessExecution set to `YES`.
116  * This means that the engine will continue to run regardless of whether a `FlutterViewController`
117  * is attached to it or not, until `-destroyContext:` is called or the process finishes.
118  *
119  * @param labelPrefix The label prefix used to identify threads for this instance. Should
120  * be unique across FlutterEngine instances, and is used in instrumentation to label
121  * the threads used by this FlutterEngine.
122  * @param project The `FlutterDartProject` to run.
123  */
124 - (instancetype)initWithName:(NSString*)labelPrefix
125  project:(nullable FlutterDartProject*)project NS_SWIFT_UI_ACTOR;
126 
127 /**
128  * Initialize this FlutterEngine with a `FlutterDartProject`.
129  *
130  * If the FlutterDartProject is not specified, the FlutterEngine will attempt to locate
131  * the project in a default location (the flutter_assets folder in the iOS application
132  * bundle).
133  *
134  * A newly initialized engine will not run the `FlutterDartProject` until either
135  * `-runWithEntrypoint:` or `-runWithEntrypoint:libraryURI:` is called.
136  *
137  * @param labelPrefix The label prefix used to identify threads for this instance. Should
138  * be unique across FlutterEngine instances, and is used in instrumentation to label
139  * the threads used by this FlutterEngine.
140  * @param project The `FlutterDartProject` to run.
141  * @param allowHeadlessExecution Whether or not to allow this instance to continue
142  * running after passing a nil `FlutterViewController` to `-setViewController:`.
143  */
144 - (instancetype)initWithName:(NSString*)labelPrefix
145  project:(nullable FlutterDartProject*)project
146  allowHeadlessExecution:(BOOL)allowHeadlessExecution NS_SWIFT_UI_ACTOR;
147 
148 /**
149  * Initialize this FlutterEngine with a `FlutterDartProject`.
150  *
151  * If the FlutterDartProject is not specified, the FlutterEngine will attempt to locate
152  * the project in a default location (the flutter_assets folder in the iOS application
153  * bundle).
154  *
155  * A newly initialized engine will not run the `FlutterDartProject` until either
156  * `-runWithEntrypoint:` or `-runWithEntrypoint:libraryURI:` is called.
157  *
158  * @param labelPrefix The label prefix used to identify threads for this instance. Should
159  * be unique across FlutterEngine instances, and is used in instrumentation to label
160  * the threads used by this FlutterEngine.
161  * @param project The `FlutterDartProject` to run.
162  * @param allowHeadlessExecution Whether or not to allow this instance to continue
163  * running after passing a nil `FlutterViewController` to `-setViewController:`.
164  * @param restorationEnabled Whether state restoration is enabled. When true, the framework will
165  * wait for the attached view controller to provide restoration data.
166  */
167 - (instancetype)initWithName:(NSString*)labelPrefix
168  project:(nullable FlutterDartProject*)project
169  allowHeadlessExecution:(BOOL)allowHeadlessExecution
170  restorationEnabled:(BOOL)restorationEnabled NS_DESIGNATED_INITIALIZER NS_SWIFT_UI_ACTOR;
171 
172 /**
173  * Runs a Dart program on an Isolate from the main Dart library (i.e. the library that
174  * contains `main()`), using `main()` as the entrypoint (the default for Flutter projects),
175  * and using "/" (the default route) as the initial route.
176  *
177  * The first call to this method creates a new Isolate and returns YES. Subsequent calls return
178  * NO immediately and have no effect.
179  *
180  * This method must be called on the main thread. See the `FlutterEngine` class documentation.
181  *
182  * @return YES if this call started the engine; NO if it was already invoked, has been destroyed,
183  * or could not be started.
184  */
185 - (BOOL)run NS_SWIFT_UI_ACTOR;
186 
187 /**
188  * Runs a Dart program on an Isolate from the main Dart library (i.e. the library that
189  * contains `main()`), using "/" (the default route) as the initial route.
190  *
191  * The first call to this method creates a new Isolate and returns YES. Subsequent calls return
192  * NO immediately and have no effect.
193  *
194  * This method must be called on the main thread. See the `FlutterEngine` class documentation.
195  *
196  * @param entrypoint The name of a top-level function from the same Dart
197  * library that contains the app's main() function. If this is FlutterDefaultDartEntrypoint (or
198  * nil) it will default to `main()`. If it is not the app's main() function, that function must
199  * be decorated with `@pragma(vm:entry-point)` to ensure the method is not tree-shaken by the Dart
200  * compiler.
201  * @return YES if this call started the engine; NO if it was already invoked, has been destroyed,
202  * or could not be started.
203  */
204 - (BOOL)runWithEntrypoint:(nullable NSString*)entrypoint NS_SWIFT_UI_ACTOR;
205 
206 /**
207  * Runs a Dart program on an Isolate from the main Dart library (i.e. the library that
208  * contains `main()`).
209  *
210  * The first call to this method creates a new Isolate and returns YES. Subsequent calls return
211  * NO immediately and have no effect.
212  *
213  * This method must be called on the main thread. See the `FlutterEngine` class documentation.
214  *
215  * @param entrypoint The name of a top-level function from the same Dart
216  * library that contains the app's main() function. If this is FlutterDefaultDartEntrypoint (or
217  * nil), it will default to `main()`. If it is not the app's main() function, that function must
218  * be decorated with `@pragma(vm:entry-point)` to ensure the method is not tree-shaken by the Dart
219  * compiler.
220  * @param initialRoute The name of the initial Flutter `Navigator` `Route` to load. If this is
221  * FlutterDefaultInitialRoute (or nil), it will default to the "/" route.
222  * @return YES if this call started the engine; NO if it was already invoked, has been destroyed,
223  * or could not be started.
224  */
225 - (BOOL)runWithEntrypoint:(nullable NSString*)entrypoint
226  initialRoute:(nullable NSString*)initialRoute NS_SWIFT_UI_ACTOR;
227 
228 /**
229  * Runs a Dart program on an Isolate using the specified entrypoint and Dart library,
230  * which may not be the same as the library containing the Dart program's `main()` function.
231  *
232  * The first call to this method creates a new Isolate and returns YES. Subsequent calls return
233  * NO immediately and have no effect.
234  *
235  * This method must be called on the main thread. See the `FlutterEngine` class documentation.
236  *
237  * @param entrypoint The name of a top-level function from a Dart library. If this is
238  * FlutterDefaultDartEntrypoint (or nil); this will default to `main()`. If it is not the app's
239  * main() function, that function must be decorated with `@pragma(vm:entry-point)` to ensure the
240  * method is not tree-shaken by the Dart compiler.
241  * @param uri The URI of the Dart library which contains the entrypoint method
242  * (example "package:foo_package/main.dart"). If nil, this will default to
243  * the same library as the `main()` function in the Dart program.
244  * @return YES if this call started the engine; NO if it was already invoked, has been destroyed,
245  * or could not be started.
246  */
247 - (BOOL)runWithEntrypoint:(nullable NSString*)entrypoint
248  libraryURI:(nullable NSString*)uri NS_SWIFT_UI_ACTOR;
249 
250 /**
251  * Runs a Dart program on an Isolate using the specified entrypoint and Dart library,
252  * which may not be the same as the library containing the Dart program's `main()` function.
253  *
254  * The first call to this method creates a new Isolate and returns YES. Subsequent calls return
255  * NO immediately and have no effect.
256  *
257  * This method must be called on the main thread. See the `FlutterEngine` class documentation.
258  *
259  * @param entrypoint The name of a top-level function from a Dart library. If this is
260  * FlutterDefaultDartEntrypoint (or nil); this will default to `main()`. If it is not the app's
261  * main() function, that function must be decorated with `@pragma(vm:entry-point)` to ensure the
262  * method is not tree-shaken by the Dart compiler.
263  * @param libraryURI The URI of the Dart library which contains the entrypoint
264  * method (example "package:foo_package/main.dart"). If nil, this will
265  * default to the same library as the `main()` function in the Dart program.
266  * @param initialRoute The name of the initial Flutter `Navigator` `Route` to load. If this is
267  * FlutterDefaultInitialRoute (or nil), it will default to the "/" route.
268  * @return YES if this call started the engine; NO if it was already invoked, has been destroyed,
269  * or could not be started.
270  */
271 - (BOOL)runWithEntrypoint:(nullable NSString*)entrypoint
272  libraryURI:(nullable NSString*)libraryURI
273  initialRoute:(nullable NSString*)initialRoute NS_SWIFT_UI_ACTOR;
274 
275 /**
276  * Runs a Dart program on an Isolate using the specified entrypoint and Dart library,
277  * which may not be the same as the library containing the Dart program's `main()` function.
278  *
279  * The first call to this method creates a new Isolate and returns YES. Subsequent calls return
280  * NO immediately and have no effect.
281  *
282  * This method must be called on the main thread. See the `FlutterEngine` class documentation.
283  *
284  * @param entrypoint The name of a top-level function from a Dart library. If this is
285  * FlutterDefaultDartEntrypoint (or nil); this will default to `main()`. If it is not the app's
286  * main() function, that function must be decorated with `@pragma(vm:entry-point)` to ensure the
287  * method is not tree-shaken by the Dart compiler.
288  * @param libraryURI The URI of the Dart library which contains the entrypoint
289  * method (example "package:foo_package/main.dart"). If nil, this will
290  * default to the same library as the `main()` function in the Dart program.
291  * @param initialRoute The name of the initial Flutter `Navigator` `Route` to load. If this is
292  * FlutterDefaultInitialRoute (or nil), it will default to the "/" route.
293  * @param entrypointArgs Arguments passed as a list of string to Dart's entrypoint function.
294  * @return YES if this call started the engine; NO if it was already invoked, has been destroyed,
295  * or could not be started.
296  */
297 - (BOOL)runWithEntrypoint:(nullable NSString*)entrypoint
298  libraryURI:(nullable NSString*)libraryURI
299  initialRoute:(nullable NSString*)initialRoute
300  entrypointArgs:(nullable NSArray<NSString*>*)entrypointArgs NS_SWIFT_UI_ACTOR;
301 
302 /**
303  * Destroy running context for an engine.
304  *
305  * This method can be used to force the FlutterEngine object to release all resources.
306  * After sending this message, the object will be in an unusable state until it is deallocated.
307  * Accessing properties or sending messages to it will result in undefined behavior or runtime
308  * errors.
309  *
310  * The engine cannot be run again: `-run` and the `-runWithEntrypoint:` variants return `NO`.
311  */
312 - (void)destroyContext;
313 
314 /**
315  * Ensures that Flutter will generate a semantics tree.
316  *
317  * This is enabled by default if certain accessibility services are turned on by
318  * the user, or when using a Simulator. This method allows a user to turn
319  * semantics on when they would not ordinarily be generated and the performance
320  * overhead is not a concern, e.g. for UI testing. Note that semantics should
321  * never be programmatically turned off, as it would potentially disable
322  * accessibility services an end user has requested.
323  *
324  * This method must only be called after launching the engine via
325  * `-runWithEntrypoint:` or `-runWithEntryPoint:libraryURI`.
326  *
327  * Although this method returns synchronously, it does not guarantee that a
328  * semantics tree is actually available when the method returns. It
329  * synchronously ensures that the next frame the Flutter framework creates will
330  * have a semantics tree.
331  *
332  * You can subscribe to semantics updates via `NSNotificationCenter` by adding
333  * an observer for the name `FlutterSemanticsUpdateNotification`. The `object`
334  * parameter will be the `FlutterViewController` associated with the semantics
335  * update. This will asynchronously fire after a semantics tree has actually
336  * built and has been applied to a loaded Flutter view (which may be some time after the frame has
337  * been rendered). If the view is not loaded when the semantics tree is built, the notification is
338  * deferred until the cached semantics are applied when the view loads.
339  */
340 - (void)ensureSemanticsEnabled;
341 
342 /**
343  * Sets the `FlutterViewController` for this instance. The FlutterEngine must be
344  * running (e.g. a successful call to `-runWithEntrypoint:` or `-runWithEntrypoint:libraryURI`)
345  * before calling this method. Callers may pass nil to remove the viewController
346  * and have the engine run headless in the current process.
347  *
348  * A FlutterEngine can only have one `FlutterViewController` at a time. If there is
349  * already a `FlutterViewController` associated with this instance, this method will replace
350  * the engine's current viewController with the newly specified one.
351  *
352  * Setting the viewController will signal the engine to start animations and drawing, and unsetting
353  * it will signal the engine to stop animations and drawing. However, neither will impact the state
354  * of the Dart program's execution.
355  */
356 @property(nonatomic, weak) FlutterViewController* viewController;
357 
358 /**
359  * The `FlutterMethodChannel` used for localization related platform messages, such as
360  * setting the locale.
361  *
362  * Can be nil after `destroyContext` is called.
363  */
364 @property(nonatomic, readonly, nullable) FlutterMethodChannel* localizationChannel;
365 /**
366  * The `FlutterMethodChannel` used for navigation related platform messages.
367  *
368  * Can be nil after `destroyContext` is called.
369  *
370  * @see [Navigation
371  * Channel](https://api.flutter-io.cn/flutter/services/SystemChannels/navigation-constant.html)
372  * @see [Navigator Widget](https://api.flutter-io.cn/flutter/widgets/Navigator-class.html)
373  */
374 @property(nonatomic, readonly) FlutterMethodChannel* navigationChannel;
375 
376 /**
377  * The `FlutterMethodChannel` used for restoration related platform messages.
378  *
379  * Can be nil after `destroyContext` is called.
380  *
381  * @see [Restoration
382  * Channel](https://api.flutter-io.cn/flutter/services/SystemChannels/restoration-constant.html)
383  */
384 @property(nonatomic, readonly) FlutterMethodChannel* restorationChannel;
385 
386 /**
387  * The `FlutterMethodChannel` used for core platform messages, such as
388  * information about the screen orientation.
389  *
390  * Can be nil after `destroyContext` is called.
391  */
392 @property(nonatomic, readonly) FlutterMethodChannel* platformChannel;
393 
394 /**
395  * The `FlutterMethodChannel` used to communicate text input events to the
396  * Dart Isolate.
397  *
398  * Can be nil after `destroyContext` is called.
399  *
400  * @see [Text Input
401  * Channel](https://api.flutter-io.cn/flutter/services/SystemChannels/textInput-constant.html)
402  */
403 @property(nonatomic, readonly) FlutterMethodChannel* textInputChannel;
404 
405 /**
406  * The `FlutterBasicMessageChannel` used to communicate app lifecycle events
407  * to the Dart Isolate.
408  *
409  * Can be nil after `destroyContext` is called.
410  *
411  * @see [Lifecycle
412  * Channel](https://api.flutter-io.cn/flutter/services/SystemChannels/lifecycle-constant.html)
413  */
414 @property(nonatomic, readonly) FlutterBasicMessageChannel* lifecycleChannel;
415 
416 /**
417  * The `FlutterBasicMessageChannel` used for communicating system events, such as
418  * memory pressure events.
419  *
420  * Can be nil after `destroyContext` is called.
421  *
422  * @see [System
423  * Channel](https://api.flutter-io.cn/flutter/services/SystemChannels/system-constant.html)
424  */
425 @property(nonatomic, readonly) FlutterBasicMessageChannel* systemChannel;
426 
427 /**
428  * The `FlutterBasicMessageChannel` used for communicating user settings such as
429  * clock format and text scale.
430  *
431  * Can be nil after `destroyContext` is called.
432  */
433 @property(nonatomic, readonly) FlutterBasicMessageChannel* settingsChannel;
434 
435 /**
436  * The `FlutterBasicMessageChannel` used for communicating key events
437  * from physical keyboards
438  *
439  * Can be nil after `destroyContext` is called.
440  */
441 @property(nonatomic, readonly) FlutterBasicMessageChannel* keyEventChannel;
442 
443 /**
444  * The `NSURL` of the Dart VM Service for the service isolate.
445  *
446  * This is only set in debug and profile runtime modes, and only after the
447  * Dart VM Service is ready. In release mode or before the Dart VM Service has
448  * started, it returns `nil`.
449  */
450 @property(nonatomic, readonly, nullable) NSURL* vmServiceUrl;
451 
452 /**
453  * The `FlutterBinaryMessenger` associated with this FlutterEngine (used for communicating with
454  * channels).
455  */
456 @property(nonatomic, readonly) NSObject<FlutterBinaryMessenger>* binaryMessenger;
457 
458 /**
459  * The `FlutterTextureRegistry` associated with this FlutterEngine (used to register textures).
460  */
461 @property(nonatomic, readonly) NSObject<FlutterTextureRegistry>* textureRegistry;
462 
463 /**
464  * The UI Isolate ID of the engine.
465  *
466  * This property will be nil if the engine is not running.
467  */
468 @property(nonatomic, readonly, copy, nullable) NSString* isolateId;
469 
470 /**
471  * Whether or not GPU calls are allowed.
472  *
473  * Typically this is set when the app is backgrounded and foregrounded.
474  */
475 @property(nonatomic, assign) BOOL isGpuDisabled FLUTTER_DEPRECATED(
476  "This property is managed by the engine and will be removed from the public API.");
477 
478 @end
479 
480 /**
481  * Exposes parts of a `FlutterEngine` for registration purposes.
482  *
483  * This is used when the engine is created implicitly to allow registering
484  * plugins, application-level method channels, platform views, etc.
485  */
486 @protocol FlutterImplicitEngineBridge <NSObject>
487 
488 /**
489  * The `FlutterPluginRegistry` for the created `FlutterEngine`.
490  *
491  * This can be used to vend `FlutterPluginRegistrar`s for plugins.
492  */
493 @property(nonatomic, readonly) NSObject<FlutterPluginRegistry>* pluginRegistry;
494 
495 /**
496  * The `FlutterApplicationRegistrar` for the created `FlutterEngine`.
497  *
498  * This registrar provides access to application-level services, such as the engine's
499  * `FlutterBinaryMessenger` or `FlutterTextureRegistry`.
500  */
501 @property(nonatomic, readonly) NSObject<FlutterApplicationRegistrar>* applicationRegistrar;
502 
503 @end
504 
505 /**
506  * Protocol for receiving a callback when an implicit engine is initialized, such as when created by
507  * a FlutterViewController from a storyboard.
508  *
509  * This provides the engine bridge to the listener.
510  */
512 @required
513 
514 /**
515  * Called once the implicit `FlutterEngine` is initialized.
516  *
517  * The `FlutterImplicitEngineBridge` can then be used to register plugins,
518  * application-level method channels, platform views, etc.
519  */
520 - (void)didInitializeImplicitFlutterEngine:(NSObject<FlutterImplicitEngineBridge>*)engineBridge;
521 @end
522 
524 
525 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_HEADERS_FLUTTERENGINE_H_
NS_ASSUME_NONNULL_BEGIN NSString *const FlutterDefaultDartEntrypoint
NSString *const FlutterDefaultInitialRoute
#define NS_ASSUME_NONNULL_BEGIN
Definition: FlutterMacros.h:19
#define NS_ASSUME_NONNULL_END
Definition: FlutterMacros.h:20
#define FLUTTER_DARWIN_EXPORT
Definition: FlutterMacros.h:14
FlutterViewController * viewController
FlutterMethodChannel * textInputChannel
NSURL * vmServiceUrl
FlutterMethodChannel * navigationChannel
FlutterBasicMessageChannel * keyEventChannel
FlutterBasicMessageChannel * lifecycleChannel
FlutterMethodChannel * platformChannel
FlutterMethodChannel * localizationChannel
NSObject< FlutterTextureRegistry > * textureRegistry
NSString * isolateId
FlutterBasicMessageChannel * systemChannel
FlutterBasicMessageChannel * settingsChannel
instancetype NS_SWIFT_UI_ACTOR()
FlutterMethodChannel * restorationChannel
BOOL isGpuDisabled FLUTTER_DEPRECATED("This property is managed by the engine and will be removed from the public API.")
NSObject< FlutterBinaryMessenger > * binaryMessenger
void ensureSemanticsEnabled()
NSObject< FlutterPluginRegistry > * pluginRegistry
NSObject< FlutterApplicationRegistrar > * applicationRegistrar