Contents

handle(_:)

Tells the delegate that the app has received one or more background tasks.

Declaration

optional func handle(_ backgroundTasks: Set<WKRefreshBackgroundTask>)

Parameters

  • backgroundTasks:

    A set containing one or more background tasks.

Mentioned in

Discussion

The system calls this method after launching your app to handle a background task. Use this method to handle the specified tasks. Call each tasks’s setTaskCompletedWithSnapshot(_:) method as soon as the task is complete. For more information on background tasks, see Using background tasks.