WKRefreshBackgroundTask
The abstract superclass for WatchKit’s background task classes.
Declaration
class WKRefreshBackgroundTaskMentioned in
Overview
Don’t subclass or create instances of this class. The system automatically creates an appropriate background task object whenever it triggers a background task. This object is passed to your app delegate’s handle(_:) method. Use the provided background task object to identify and manage the background task.
Topics
Accessing background task data
Completing the background task
See Also
Background tasks
Using background tasksPreparing to take your watchOS app’s snapshotWKApplicationRefreshBackgroundTaskWKURLSessionRefreshBackgroundTaskWKWatchConnectivityRefreshBackgroundTaskWKBluetoothAlertRefreshBackgroundTaskWKIntentDidRunRefreshBackgroundTaskWKRelevantShortcutRefreshBackgroundTaskWKSnapshotRefreshBackgroundTask