AppDelegate.swift 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // AppDelegate.swift
  3. // send-ios
  4. //
  5. // Created by Donovan Preston on 7/19/18.
  6. //
  7. import UIKit
  8. @UIApplicationMain
  9. class AppDelegate: UIResponder, UIApplicationDelegate {
  10. var window: UIWindow?
  11. func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
  12. // Override point for customization after application launch.
  13. return true
  14. }
  15. func applicationWillResignActive(_ application: UIApplication) {
  16. // 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.
  17. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
  18. }
  19. func applicationDidEnterBackground(_ application: UIApplication) {
  20. // 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.
  21. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
  22. }
  23. func applicationWillEnterForeground(_ application: UIApplication) {
  24. // 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.
  25. }
  26. func applicationDidBecomeActive(_ application: UIApplication) {
  27. // 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.
  28. }
  29. func applicationWillTerminate(_ application: UIApplication) {
  30. // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
  31. }
  32. }