Type Method

backgroundSessionConfiguration(_:)

Returns a session configuration object that allows HTTP and HTTPS uploads or downloads to be performed in the background.

Declaration

class func backgroundSessionConfiguration(_ identifier: String) -> URLSessionConfiguration

Parameters

identifier

The unique identifier for the configuration object. This parameter must not be nil or an empty string.

Return Value

A URL session configuration object that causes upload and download tasks to be performed by the system in a separate process.