|
| 1 | +// Copyright 2024 The MediaPipe Authors. |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +import UIKit |
| 16 | + |
| 17 | +@main |
| 18 | +class AppDelegate: UIResponder, UIApplicationDelegate { |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { |
| 23 | + // Override point for customization after application launch. |
| 24 | + return true |
| 25 | + } |
| 26 | + |
| 27 | + // MARK: UISceneSession Lifecycle |
| 28 | + |
| 29 | + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { |
| 30 | + // Called when a new scene session is being created. |
| 31 | + // Use this method to select a configuration to create the new scene with. |
| 32 | + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) |
| 33 | + } |
| 34 | + |
| 35 | + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { |
| 36 | + // Called when the user discards a scene session. |
| 37 | + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. |
| 38 | + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. |
| 39 | + } |
| 40 | + |
| 41 | + |
| 42 | +} |
| 43 | + |
0 commit comments