Instance Property

isApplicationRunningInDock

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

Declaration

@property(nonatomic, readonly) BOOL isApplicationRunningInDock;

Discussion

This property contains YES if the app is running in the dock; otherwise, NO.

Check this property (for example, in your extension delegate’s applicationWillEnterForeground method) to determine whether your app is running in the dock. You can use this information to customize your user interface in the dock.

See Also

Managing the Execution State

applicationState

The runtime state of the Watch app.

WKApplicationState

The running states of your Watch app.

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.