Tells the delegate that the app has received one or more background tasks.
SDK
- watchOS 3.0+
Framework
- Watch
Kit
Declaration
- (void)handleBackgroundTasks:(NSSet<WKRefresh Background Task *> *)backgroundTasks;
Parameters
backgroundTasks
A set containing one or more background tasks.
Discussion
The system calls this method when your app is launched to handle a background task. Use this method to handle the specified tasks. Call each tasks’s set
method as soon as the task is complete. For more information on background tasks, see Background Refresh Tasks.