Flutter Engine
 
Loading...
Searching...
No Matches
FlutterPluginSceneLifeCycleDelegate() Category Reference

#include <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
readwritenonatomicstrong

Definition at line 34 of file FlutterSceneLifeCycle.mm.

◆ developerManagedEngines

- (NSPointerArray*) developerManagedEngines
readwritenonatomicstrong

An array of weak pointers to FlutterEngines 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
readwritenonatomicstrong

An array of weak pointers to FlutterEngines 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
readwritenonatomicassign

Definition at line 35 of file FlutterSceneLifeCycle.mm.

◆ sceneWillConnectFallbackCalled

- (BOOL) sceneWillConnectFallbackCalled
readwritenonatomicassign

Definition at line 36 of file FlutterSceneLifeCycle.mm.


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