Marks the task as complete.
- watchOS 3.0+
trueif your app has navigated back to its default launch scene.
The preferred date and time for the next background snapshot refresh task. Use
distantif you do not want to schedule the next refresh.
Custom data to be associated with the next background snapshot refresh task. This value is assigned to the next
Refresh Background Task
nilif you don’t want to associate any data with the next task.
Call this method as soon as your app finishes updating its user interface. The system provides your extension with a limited amount of time (on the order of seconds) to finish the background snapshot refresh task. If you do not call
set on the task, the system uses all available time, wasting battery power. The system then suspends the extension as soon as the allotted time has expired.
The system automatically takes a snapshot of your app’s user interface as soon as this task is complete. The system also suspends the extension as soon as all background tasks are complete.