| Flutter iOS Embedder |

Instance Methods | List of all members
<FlutterSceneLifeCycleDelegate> Protocol Reference

`#import <FlutterSceneLifeCycle.h>`

Inheritance diagram for <FlutterSceneLifeCycleDelegate>:

## Instance Methods
(BOOL) | - scene:willConnectToSession:options:
(void) | - sceneDidDisconnect:
(void) | - sceneWillEnterForeground:
(void) | - sceneDidBecomeActive:
(void) | - sceneWillResignActive:
(void) | - sceneDidEnterBackground:
(BOOL) | - scene:openURLContexts:
(BOOL) | - scene:continueUserActivity:
(BOOL) | - windowScene:performActionForShortcutItem:completionHandler:

## Detailed Description

A protocol for delegates that handle `UISceneDelegate` and `UIWindowSceneDelegate` life-cycle events.

This protocol provides a way for Flutter plugins to observe and react to scene-based life-cycle events. The methods in this protocol correspond to methods in `UISceneDelegate` and `UIWindowSceneDelegate`.

See also:

- `UISceneDelegate`, core methods you use to respond to life-cycle events occurring within a scene: https://developer.apple.com/documentation/uikit/uiscenedelegate
- `UIWindowSceneDelegate`, additional methods that you use to manage app-specific tasks occurring in a scene: https://developer.apple.com/documentation/uikit/uiwindowscenedelegate

Definition at line 31 of file FlutterSceneLifeCycle.h.

## Method Documentation

## ◆ scene:continueUserActivity:

- (BOOL) scene: |  | (UIScene *) | scene
continueUserActivity: |  | (NSUserActivity *) | userActivity
| optional

Tells the delegate that the scene is continuing a user activity.

This corresponds to `-[UISceneDelegate scene:continueUserActivity:]`.

Returns
  `YES` if this handled the activity.

## ◆ scene:openURLContexts:

- (BOOL) scene: |  | (UIScene *) | scene
openURLContexts: |  | (NSSet< UIOpenURLContext * > *) | URLContexts
| optional

Asks the delegate to open one or more URLs.

This corresponds to `-[UISceneDelegate scene:openURLContexts:]`.

Returns
  `YES` if this handled one or more of the URLs.

## ◆ scene:willConnectToSession:options:

- (BOOL) scene: |  | (UIScene *) | scene
willConnectToSession: |  | (UISceneSession *) | session
options: |  | (nullable UISceneConnectionOptions *) | connectionOptions
| optional

Informs the delegate that a new scene is about to be connected and configured.

This corresponds to `-[UISceneDelegate scene:willConnectToSession:options:]`. `connectionOptions` may be nil if another plugin has already handled the connection.

Returns
  `YES` if this handled the connection.

## ◆ sceneDidBecomeActive:

- (void) sceneDidBecomeActive: |  | (UIScene *) | scene |
| optional

## ◆ sceneDidDisconnect:

- (void) sceneDidDisconnect: |  | (UIScene *) | scene |
| optional

## ◆ sceneDidEnterBackground:

- (void) sceneDidEnterBackground: |  | (UIScene *) | scene |
| optional

## ◆ sceneWillEnterForeground:

- (void) sceneWillEnterForeground: |  | (UIScene *) | scene |
| optional

## ◆ sceneWillResignActive:

- (void) sceneWillResignActive: |  | (UIScene *) | scene |
| optional

## ◆ windowScene:performActionForShortcutItem:completionHandler:

- (BOOL) windowScene: |  | (UIWindowScene *) | windowScene
performActionForShortcutItem: |  | (UIApplicationShortcutItem *) | shortcutItem
completionHandler: |  | (void(^)(BOOL succeeded)) | completionHandler
| optional

Tells the delegate that the user has selected a home screen quick action.

This corresponds to `-[UIWindowSceneDelegate windowScene:performActionForShortcutItem:completionHandler:]`.

Returns
  `YES` if this handled the shortcut.

The documentation for this protocol was generated from the following file:

- shell/platform/darwin/ios/framework/Headers/FlutterSceneLifeCycle.h