WKRefreshBackgroundTask

E494396

WKRefreshBackgroundTask is a WatchKit API class used to handle and manage background refresh tasks in watchOS apps.

All labels observed (3)

How this entity was disambiguated

Statements (44)

Predicate Object
instanceOf WatchKit class
background task type
availableOn watchOS 3 or later
behaviorOnTimeout system calls expiration handler if not completed in time
category background execution
completionEffect signals to system that background refresh is done
conformsTo WKIdentifiable
constraint execution time limited by watchOS
no direct UI updates while app is not active
declaredIn WatchKit.WKRefreshBackgroundTask
definedInFramework WatchKit
deliveredTo WKExtensionDelegate
documentationURL https://developer.apple.com/documentation/watchkit/wkrefreshbackgroundtask
handledInMethod handle(_ backgroundTasks: Set<WKBackgroundTask>)
handle(_ backgroundTasks: Set<WKRefreshBackgroundTask>) (older signatures)
hasMethod setTaskCompleted()
setTaskCompletedWithSnapshot(_:) (Swift 2-era API)
hasProperty expirationHandler (inherited from WKBackgroundTask)
isUserInitiated (inherited from WKBackgroundTask)
inheritsFrom WKBackgroundTask
introducedIn watchOS 3
linked to: watchOS
isAbstract false
languageBindings Objective-C
Swift
lifecycle createdBySystem
module WatchKit
namespace Apple WatchKit API
linked to: WatchKit
ownership managed by system, not created directly by apps
platform watchOS
purpose handle background refresh tasks in watchOS apps
relatedTo WKApplicationRefreshBackgroundTask
WKSnapshotRefreshBackgroundTask
WKURLSessionRefreshBackgroundTask
requires background modes configuration for certain update types
calling setTaskCompleted() when work is finished
threading typically handled on main thread
type class
usedFor performing small, time-limited background work
refreshing app data while not in foreground
refreshing complication data
scheduling periodic background updates
updating app content in the background
usedWith WKExtension
WKExtensionDelegate

How these facts were elicited

Referenced by (7)

Full triples — surface form annotated when it differs from this entity's canonical label.

WatchKit includesClass WKRefreshBackgroundTask
WKRefreshBackgroundTask declaredIn WatchKit.WKRefreshBackgroundTask
linked to: WKRefreshBackgroundTask
WKRefreshBackgroundTask relatedTo WKApplicationRefreshBackgroundTask
linked to: WKRefreshBackgroundTask
WKSnapshotRefreshBackgroundTask inheritsFrom WKRefreshBackgroundTask
WKSnapshotRefreshBackgroundTask relatedTo WKApplicationRefreshBackgroundTask
linked to: WKRefreshBackgroundTask
WKURLSessionRefreshBackgroundTask inheritsFrom WKRefreshBackgroundTask
WKURLSessionRefreshBackgroundTask relatedTo WKRefreshBackgroundTask