Contents

WKApplicationState.inactive

The Watch app is running in the foreground, but is not yet responding to actions from controls or gestures.

Declaration

case inactive

Mentioned in

Discussion

Typically, apps transition quickly through the WKApplicationState.inactive state when becoming active or going to the background. A newly launched watchOS app starts in the WKApplicationState.inactive state and then quickly transitions to the WKApplicationState.active state.

An active app also transition to this state when the user dismisses the app or stops interacting with it. The app remains in the WKApplicationState.inactive state as long as it is the frontmost app (see Understand Frontmost App State). Then the system transitions the app to the WKApplicationState.background state before suspending it.

In some situations, the app may run for extended periods in the inactive state. For example, this occurs when the app is running in the dock, or when it is the frontmost app.

When the user scrolls to the app in the dock, the system initially displays the app’s most recent snapshot. Then the app transitions to the foreground, but remains in the WKApplicationState.inactive state. The system displays a running preview of the app in the dock, but the app doesn’t respond to actions or gestures.

See Also

Constants