Enumeration

WKApplicationState

The running states of your Watch app.

Declaration

typedef enum WKApplicationState : NSInteger {
    ...
} WKApplicationState;

Topics

Constants

WKApplicationStateActive

The Watch app is running in the foreground and currently receiving events.

WKApplicationStateInactive

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

WKApplicationStateBackground

The Watch app is running in the background.

See Also

Managing the Execution State

applicationState

The runtime state of the Watch app.

isApplicationRunningInDock

A Boolean value that indicates whether the app is running in the dock.

frontmostTimeoutExtended

A Boolean value that determines whether the app extends its time as the frontmost app.

- scheduleBackgroundRefreshWithPreferredDate:userInfo:scheduledCompletion:

Schedules a background task to refresh your app’s data.