WKSnapshotRefreshBackgroundTask
E494397
WKSnapshotRefreshBackgroundTask is a WatchKit background task class used to update and refresh snapshot images of a watchOS app’s user interface while it’s not actively running.
Statements (45)
| Predicate | Object |
|---|---|
| instanceOf |
WKRefreshBackgroundTask subclass
ⓘ
WatchKit background task class ⓘ |
| affects | system-managed snapshot of watchOS app UI ⓘ |
| availability | available on watchOS only ⓘ |
| behavior | runs briefly in background to update UI snapshot ⓘ |
| category |
background execution
ⓘ
snapshot management ⓘ |
| completionEffect | informs system that snapshot update is finished ⓘ |
| conformsTo | NSObject NERFINISHED ⓘ |
| definedIn | WatchKit framework NERFINISHED ⓘ |
| designGoal | keep watch app snapshots current without foreground launch ⓘ |
| documentationURL | https://developer.apple.com/documentation/watchkit/wksnapshotrefreshbackgroundtask ⓘ |
| handledIn | handle(_ backgroundTasks:) of WKExtensionDelegate ⓘ |
| hasMethod |
setTaskCompleted(restoredDefaultState:estimatedSnapshotExpiration:userInfo:)
ⓘ
setTaskCompletedWithDefaultState() ⓘ |
| hasProperty |
expirationDate
ⓘ
userInfo ⓘ |
| inheritsFrom | WKRefreshBackgroundTask NERFINISHED ⓘ |
| introducedBy | Apple NERFINISHED ⓘ |
| languageSupport |
Objective-C
NERFINISHED
ⓘ
Swift NERFINISHED ⓘ |
| lifecycle | delivered by WKExtension to extension delegate ⓘ |
| lifecycleState | delivered when system requests updated snapshot ⓘ |
| mustNot |
omit calling completion handler
ⓘ
run indefinitely ⓘ |
| namespace | WatchKit NERFINISHED ⓘ |
| ownedBy | system until delivered to app ⓘ |
| platform | watchOS NERFINISHED ⓘ |
| primaryPurpose |
refresh snapshot while app is not actively running
ⓘ
update snapshot images of a watchOS app’s user interface ⓘ |
| relatedTo |
WKApplicationRefreshBackgroundTask
NERFINISHED
ⓘ
WKExtension NERFINISHED ⓘ WKExtensionDelegate NERFINISHED ⓘ WKURLSessionRefreshBackgroundTask NERFINISHED ⓘ |
| requires |
WatchKit extension target
ⓘ
calling setTaskCompleted… to finish the task ⓘ |
| scope | single snapshot update request ⓘ |
| snapshotType | static image of last known interface state ⓘ |
| supports |
estimated snapshot expiration date
ⓘ
passing userInfo for future refreshes ⓘ |
| threadingModel | executed on app’s extension process ⓘ |
| triggeredBy | system snapshot refresh scheduling ⓘ |
| usedBy | watchOS apps with complications or rich notifications ⓘ |
| usedFor |
background snapshot updates
ⓘ
improving app glanceability on watchOS ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.