AppUIInstanceStateObservable
public protocol AppUIInstanceStateObservable : Observer
Observer of Application UI Instance state
UI Instance is represented by UIScene
(there could be multiple UIScene
instances per iOS application)
or UIApplication
(there is a single instance of UIApplication
class per iOS application).
Important
This is a Public Preview API. It may be changed or removed at any time.-
Called when the UI instance is about to begin running in the foreground mode and become visible to the user. The method is called only regardless of the iOS application setup (with or without UIScenes).
Declaration
Swift
func appUIInstanceWillEnterForeground()
-
Called when the UI instance is now onscreen and responding to user events. The method is called only regardless of the iOS application setup (with or without UIScenes).
Declaration
Swift
func appUIInstanceDidBecomeActive()
-
Called when the UI instance has entered background mode and is no longer onscreen. The method is called only regardless of the iOS application setup (with or without UIScenes).
Declaration
Swift
func appUIInstanceDidEnterBackground()
-
Called when the iOS application is about to terminate. The method is called only regardless of the iOS application setup (with or without UIScenes).
Declaration
Swift
func applicationWillTerminate()
-
appUIInstanceWillConnect()
Default implementationIndicates that UIKit added a scene to user app. The method is called only when user app is using scenes setup.
Default Implementation
Declaration
Swift
func appUIInstanceWillConnect()
-
appUIInstanceWillDeactivate()
Default implementationCalled when the UI instance (UIScene, UIApplication) is about to resign the active state and stop responding to user events.
Default Implementation
Declaration
Swift
func appUIInstanceWillDeactivate()
-
appUIInstanceDidDisconnect()
Default implementationIndicates that UIKit removed a scene from your app.OnTrafficIncidentObservation The method is called only when user app is using scenes setup.
Default Implementation
Declaration
Swift
func appUIInstanceDidDisconnect()