| Flutter iOS Embedder |

Instance Methods | Properties | List of all members
FlutterLaunchEngine Class Reference

`#import <FlutterLaunchEngine.h>`

Inheritance diagram for FlutterLaunchEngine:

## Instance Methods
(nullable FlutterEngine *) | - takeEngine

## Properties
FlutterEngine * | engine

## Detailed Description

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.

## Method Documentation

## ◆ takeEngine

- (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.

45 {
46 FlutterEngine* result = _engine;
47 _engine = nil;
48 _didTakeEngine = YES;
49 return result;
50 }
FlutterEngine
Definition: FlutterEngine.h:61

## Property Documentation

## ◆ engine

- (FlutterEngine *) engine
| read nonatomic strong

Accessor for the launch engine.

Getting this may allocate an engine.

Definition at line 29 of file FlutterLaunchEngine.h.

The documentation for this class was generated from the following files:

- shell/platform/darwin/ios/framework/Source/FlutterLaunchEngine.h
- shell/platform/darwin/ios/framework/Source/FlutterLaunchEngine.m