| Flutter iOS Embedder |

Instance Methods | Class Methods | Properties | List of all members
FlutterPluginSceneLifeCycleDelegate() Category Reference

`#import <FlutterSceneLifeCycle_Internal.h>`

## Instance Methods
(BOOL) | - addFlutterManagedEngine:
(BOOL) | - removeFlutterManagedEngine:
(void) | - engine:receivedConnectNotificationFor:
(NSUserActivity *) | - stateRestorationActivityForScene:
(void) | - scene:restoreInteractionStateWithUserActivity:

## Class Methods
(FlutterPluginSceneLifeCycleDelegate *) | + fromScene:

## Properties
NSPointerArray * | flutterManagedEngines
NSPointerArray * | developerManagedEngines
UISceneConnectionOptions * | connectionOptions
BOOL | sceneWillConnectEventHandledByPlugin
BOOL | sceneWillConnectFallbackCalled

## Detailed Description

Forwards `UIWindowSceneDelegate` callbacks to the `FlutterEngine`'s `FlutterPluginSceneLifeCycleDelegate` to then be forwarded to registered plugins.

Definition at line 15 of file FlutterSceneLifeCycle.mm.

## Method Documentation

## ◆ addFlutterManagedEngine:

- (BOOL) addFlutterManagedEngine: |  | (FlutterEngine *) | engine |

Associates the `FlutterEngine` with the `FlutterPluginSceneLifeCycleDelegate` so that it will forward scene events to the plugins within the engine.

Returns NO if the engine is already associated with the delegate.

## ◆ engine:receivedConnectNotificationFor:

- (void) engine: |  | (FlutterEngine *) | engine
receivedConnectNotificationFor: |  | (UIScene *) | scene

## ◆ fromScene:

+ (FlutterPluginSceneLifeCycleDelegate*) fromScene: |  | (UIScene *) | scene |

## ◆ removeFlutterManagedEngine:

- (BOOL) removeFlutterManagedEngine: |  | (FlutterEngine *) | engine |

Removes the `FlutterEngine` from the `FlutterPluginSceneLifeCycleDelegate` so that it will no longer forward scene events to the plugins within the engine.

Returns NO if the engine is not associated with the delegate.

## ◆ scene:restoreInteractionStateWithUserActivity:

- (void) scene: |  | (UIScene *) | scene
restoreInteractionStateWithUserActivity: |  | (NSUserActivity *) | stateRestorationActivity

## ◆ stateRestorationActivityForScene:

- (NSUserActivity*) stateRestorationActivityForScene: |  | (UIScene *) | scene |

## Property Documentation

## ◆ connectionOptions

- (UISceneConnectionOptions*) connectionOptions
| read write nonatomic strong

Definition at line 34 of file FlutterSceneLifeCycle.mm.

## ◆ developerManagedEngines

- (NSPointerArray*) developerManagedEngines
| read write nonatomic strong

An array of weak pointers to `FlutterEngine`s that have views within this scene. Developers manually add engines to this array.

It is up to the developer to keep this list up-to-date.

Definition at line 32 of file FlutterSceneLifeCycle.mm.

## ◆ flutterManagedEngines

- (NSPointerArray*) flutterManagedEngines
| read write nonatomic strong

An array of weak pointers to `FlutterEngine`s that have views within this scene. Flutter automatically adds engines to this array.

This array is lazily cleaned up. `updateFlutterManagedEnginesInScene:` should be called before use to ensure it is up-to-date.

Definition at line 24 of file FlutterSceneLifeCycle.mm.

## ◆ sceneWillConnectEventHandledByPlugin

- (BOOL) sceneWillConnectEventHandledByPlugin
| read write nonatomic assign

Definition at line 35 of file FlutterSceneLifeCycle.mm.

## ◆ sceneWillConnectFallbackCalled

- (BOOL) sceneWillConnectFallbackCalled
| read write nonatomic assign

Definition at line 36 of file FlutterSceneLifeCycle.mm.

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

- shell/platform/darwin/ios/framework/Source/FlutterSceneLifeCycle.mm
- shell/platform/darwin/ios/framework/Source/FlutterSceneLifeCycle_Internal.h