import code
[app.GameProjectTest] / GameProjectTest / AppDelegate.swift
1 //
2 //  AppDelegate.swift
3 //  GameProjectTest
4 //
5 //  Created by Alan Knowles on 29/3/2022.
6 //
7
8 import UIKit
9
10 @main
11 class AppDelegate: UIResponder, UIApplicationDelegate {
12
13     var window: UIWindow?
14
15
16     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
17         // Override point for customization after application launch.
18         return true
19     }
20
21     func applicationWillResignActive(_ application: UIApplication) {
22         // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
23         // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
24     }
25
26     func applicationDidEnterBackground(_ application: UIApplication) {
27         // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
28     }
29
30     func applicationWillEnterForeground(_ application: UIApplication) {
31         // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
32     }
33
34     func applicationDidBecomeActive(_ application: UIApplication) {
35         // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
36     }
37
38
39 }
40