AppDelegate
@UIApplicationMain
class AppDelegate : UIResponder, UIApplicationDelegate
Undocumented
-
This is a
UIWindow
The backdrop for your app’s user interface and the object that dispatches events to your views.Declaration
Swift
var window: UIWindow?
-
Tells the delegate that the launch process is almost done and the app is almost ready to run.
Declaration
Swift
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey : Any]?) -> Bool
Parameters
application
The singleton app object.
launchOptions
A dictionary indicating the reason the app was launched (if any). The contents of this dictionary may be empty in situations where the user launched the app directly. For information about the possible keys in this dictionary and how to handle them, see Launch Options Keys.
Return Value
Return will be false if the app cannot handle the URL resource or continue a user activity, otherwise return true. The return value is ignored if the app is launched as a result of a remote notification.
-
Tells the delegate that the app is now in the background.
Declaration
Swift
func applicationDidEnterBackground(_: UIApplication)