AppDelegate Life Cycle

AppDelegate Functions

didFinisLaunchingWithOptions

This function is called first of functions in AppDelegate and SceneDelegate.

configurationForConnecting

As we know, on September 19, 2019, Apple introduced the multi-window feature. This feature is not yet available on iPhone, but it came to iPad with iPad-OS operating system (iOS 13). The multi-window feature allows you to play multiple windows within the same application. The most important function of the multi-window feature is configurationForConnecting. When a multi-window request is sent, this function is triggered and allows you to enter the SceneConfiguration class you specified in the info.plist with the key you specified ( Second Configuration, Third Configuration). Opens the other scene according to the incoming key.

didDiscardSceneSessions

This function allows the existing window to be destroyed. If existing windows are deleted en masse, or closed as below, discardSceneSessions(App Delegate) and sceneDidDisconnect(Scene Delegate) are called.

but if it is closed, as in the picture below, discardScene(AppDelegate) is not called, but sceneDidDisconnect(Scene Delegate) is called.

turn off by swiping
Don’t called discardScene(AppDelegate)

Yorum Gönderin

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir