#import <FlutterLaunchEngine.h>
Instance Methods | |
(nullable FlutterEngine *) | - takeEngine |
Properties | |
FlutterEngine * | engine |
A lazy container for an engine that will only dispense one engine.
This is used to hold an engine for plugin registration when the GeneratedPluginRegistrant is called on a FlutterAppDelegate before the first FlutterViewController is set up. This is the typical flow after the UISceneDelegate migration.
The launch engine is intended to work only with first FlutterViewController instantiated with a NIB since that is the only FlutterEngine that registers plugins through the FlutterAppDelegate.
Definition at line 22 of file FlutterLaunchEngine.h.
- (nullable FlutterEngine *) takeEngine |
Take ownership of the launch engine.
After this is called self.engine
and takeEngine
will always return nil.
Definition at line 9 of file FlutterLaunchEngine.m.
|
readnonatomicstrong |
Accessor for the launch engine.
Getting this may allocate an engine.
Definition at line 29 of file FlutterLaunchEngine.h.