Skip to content

Commit 40d8d8e

Browse files
Update AppDelegate.swift
1 parent f090d85 commit 40d8d8e

File tree

1 file changed

+58
-3
lines changed

1 file changed

+58
-3
lines changed

AppDelegate.swift

Lines changed: 58 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
22
// AppDelegate.swift
3-
// KatesLocalPushNotofyApp
3+
// KatesBackgroundRunner
44
//
5-
// Created by KatesAndroid on 2021/1/29.
5+
// Created by KatesAndroid on 2021/1/29 PM 7:40
66
//
77

88
import UIKit
@@ -30,7 +30,62 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3030
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
3131
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
3232
}
33-
33+
34+
func applicationDidFinishLaunching(_ application: UIApplication) {
35+
<#code#>
36+
}
37+
38+
//進入前景
39+
func applicationWillEnterForeground(_ application: UIApplication) {
40+
<#code#>
41+
}
42+
43+
// 即將啟動
44+
func applicationDidBecomeActive(_ application: UIApplication) {
45+
<#code#>
46+
}
47+
48+
// 停止啟動
49+
func applicationWillResignActive(_ application: UIApplication) {
50+
<#code#>
51+
}
52+
53+
// 進入背景
54+
func applicationDidEnterBackground(_ application: UIApplication) {
55+
<#code#>
56+
}
57+
58+
// 閒置過久,檢查記憶體與存儲空間,如不足,被迫移除。
59+
func applicationWillTerminate(_ application: UIApplication) {
60+
<#code#>
61+
}
62+
63+
// 記憶體不足提醒
64+
func applicationDidReceiveMemoryWarning(_ application: UIApplication) {
65+
<#code#>
66+
}
67+
68+
// 時間相關
69+
func applicationSignificantTimeChange(_ application: UIApplication) {
70+
<#code#>
71+
}
72+
73+
74+
// 資料相關
75+
func applicationProtectedDataDidBecomeAvailable(_ application: UIApplication) {
76+
<#code#>
77+
}
78+
79+
func applicationProtectedDataWillBecomeUnavailable(_ application: UIApplication) {
80+
<#code#>
81+
}
82+
83+
// Auth
84+
func applicationShouldRequestHealthAuthorization(_ application: UIApplication) {
85+
<#code#>
86+
}
87+
88+
3489

3590
}
3691

0 commit comments

Comments
 (0)