MwxAppDelegate
open class MwxAppDelegate<S> : UIResponder, UIApplicationDelegate where S : AnyServices
A set of methods that you use to manage shared behaviors for your app.
-
Define services and corresponding conforming protocols and lifecycle for each service.
Declaration
Swift
public final func registerServices()
-
Tells the delegate that the launch process is almost done and the app is almost ready to run.
Declaration
Swift
open func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [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
NO if the app cannot handle the URL resource or continue a user activity, otherwise return YES. The return value is ignored if the app is launched as a result of a remote notification.
-
Tells the delegate when the app is about to terminate.
Declaration
Swift
open func applicationWillTerminate(_ application: UIApplication)
Parameters
application
The singleton app object.
-
Returns the configuration data for UIKit to use when creating a new scene.
Declaration
Swift
open func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration
Parameters
application
The singleton app object.
configurationForConnecting
The session object associated with the scene. This object contains the initial configuration data loaded from the app’s Info.plist file, if any.
options
System-specific options for configuring the scene.
Return Value
The configuration object containing the information needed to create the scene.
-
Tells the delegate that the user closed one or more of the app’s scenes from the app switcher.
Declaration
Swift
open func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>)
Parameters
application
The singleton app object.
sceneSessions
The session objects associated with the discarded scenes.