Contents

urlSession(matching:)

A task that responds to background URL sessions matching the given predicate.

Declaration

static func urlSession(matching: @escaping  @Sendable (String) -> Bool) -> BackgroundTask<String, Void>

Parameters

  • matching:

    The predicate to match.

Return Value

A background task that you can handle with your app or extension.

See Also

Responding to URL sessions