- What does the AppDelegate class do?
- iOS - Delegates
- Subscribe to RSS
- Subscribe to RSS
- Understanding the iOS 13 Scene Delegate
iOS - Delegates
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. The return value is ignored if the app is launched as a result of a remote notification. This method represents your last chance to process any keys in the launch Options dictionary. That notification is sent shortly after this method returns. If either method returns falsethe URL is not handled. If you do not implement one of the methods, only the return value of the implemented method is considered. Tells the delegate that the launch process has begun but that state restoration has not yet occurred. Keys used to access values in the launch options dictionary passed to your app at initialization time. Tells the delegate when the app has finished launching. Language: Swift Objective-C. Tells the delegate that the launch process is almost done and the app is almost ready to run. SDKs iOS 3. Framework UIKit. Launch Options Key : Any]? See Also Initializing the App. Launch Options Key Keys used to access values in the launch options dictionary passed to your app at initialization time. Name Posted immediately after the app finishes launching. Related Documentation.
Subscribe to RSS
Subscribe to RSS
The app delegate is effectively the root object of your app, and it works in conjunction with UIApplication to manage some interactions with the system. Responding to notifications originating from outside the app, such as low-memory warnings, download completion notifications, and more. For more information about how you use the app delegate object to initialize your app at launch time, see Responding to the Launch of Your App. In iOS 12 and earlier, you use your app delegate to manage major life cycle events in your app. Specifically, you use methods of the app delegate to update the state of your app when it enters the foreground or moves to the background. Tells the delegate that the launch process has begun but that state restoration has not yet occurred. Keys used to access values in the launch options dictionary passed to your app at initialization time. Tells the delegate when the app has finished launching. Tells the delegate that the user closed one or more of the app's scenes from the app switcher. Posted when there is a significant change in time, for example, change to a new day midnightcarrier time update, and change to or from daylight savings time. Tells your delegate to save any high-level state information at the beginning of the state preservation process. Tells your delegate to restore any high-level state information as part of the state restoration process. Sent to the delegate when Apple Push Notification service cannot successfully complete the registration process. Tells the delegate if your app takes responsibility for notifying users when a continuation activity takes longer than expected. Asks the delegate to open a resource specified by a URL, and provides a dictionary of launch options. Asks the delegate to grant permission to use app extensions that are based on a specified extension point identifier. Asks the delegate for the interface orientations to use for the view controllers in the specified window. This exception is thrown if a view controller or the app returns 0 instead of a valid set of supported interface orientation values. Called when your app has been activated because user selected a custom action from the alert panel of a local notification. Called when your app has been activated by the user selecting an action from a local notification. Called when your app has been activated by the user selecting an action from a remote notification. Respond to system notifications when your app is in the foreground or background, and handle other significant system-related events. Language: Swift Objective-C. Protocol UIApplication Delegate. A set of methods that you use to manage shared behaviors for your app. SDKs iOS 2.