Type Method

new()

Creates and initializes a download task.

Declaration

class func new() -> Self

Discussion

Don’t use this method to manually create download tasks. Instead, use the factory methods on URLSession to add tasks to an existing URL session.

See Also

Creating Download Tasks

init()

Initializes a download task.

Deprecated