Instance Property

applicationState

The runtime state of the Watch app.

Declaration

@property(nonatomic, readonly) WKApplicationState applicationState;

Discussion

The Watch app may be active, inactive, or running in the background. Use this property to get the current state. To be notified of state changes, implement the appropriate methods of the delegate object.

See Also

Managing the Execution State

WKApplicationState

The running states of your 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.