Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SceneDelegate.m
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#import "SceneDelegate.h"
6
7@interface SceneDelegate ()
8
9@end
10
11@implementation SceneDelegate
12
13- (void)scene:(UIScene*)scene
14 willConnectToSession:(UISceneSession*)session
15 options:(UISceneConnectionOptions*)connectionOptions {
16 // Use this method to optionally configure and attach the UIWindow `window` to the provided
17 // UIWindowScene `scene`. If using a storyboard, the `window` property will automatically be
18 // initialized and attached to the scene. This delegate does not imply the connecting scene or
19 // session are new (see `application:configurationForConnectingSceneSession` instead).
20}
21
22- (void)sceneDidDisconnect:(UIScene*)scene {
23 // Called as the scene is being released by the system.
24 // This occurs shortly after the scene enters the background, or when its session is discarded.
25 // Release any resources associated with this scene that can be re-created the next time the scene
26 // connects. The scene may re-connect later, as its session was not necessarily discarded (see
27 // `application:didDiscardSceneSessions` instead).
28}
29
30- (void)sceneDidBecomeActive:(UIScene*)scene {
31 // Called when the scene has moved from an inactive state to an active state.
32 // Use this method to restart any tasks that were paused (or not yet started) when the scene was
33 // inactive.
34}
35
36- (void)sceneWillResignActive:(UIScene*)scene {
37 // Called when the scene will move from an active state to an inactive state.
38 // This may occur due to temporary interruptions (ex. an incoming phone call).
39}
40
41- (void)sceneWillEnterForeground:(UIScene*)scene {
42 // Called as the scene transitions from the background to the foreground.
43 // Use this method to undo the changes made on entering the background.
44}
45
46- (void)sceneDidEnterBackground:(UIScene*)scene {
47 // Called as the scene transitions from the foreground to the background.
48 // Use this method to save data, release shared resources, and store enough scene-specific state
49 // information to restore the scene back to its current state.
50}
51
52@end