Instance Property

applicationState

The runtime state of the app.

Declaration

var applicationState: UIApplication.State { get }

Discussion

Use this property to determine the app's current execution state. An app is in the inactive state at launch time and then is usually in either the active or background state. The app may enter the inactive state again briefly as it transitions between the active and background states.

Use the methods of UIApplicationDelegate to respond to changes in the app's life cycle. You can also observe the app-specific notifications (listed in Detecting an App Snapshot) to detect changes.

See Also

Getting the Application State

enum UIApplication.State

The running states of an app