Contents

init(identifier:request:applicationGroupIdentifier:priority:)

Creates a prioritized download that uses the specified identifier and App Group.

Declaration

convenience init(identifier: String, request: URLRequest, applicationGroupIdentifier: String, priority: BADownload.Priority)

Parameters

  • identifier:

    An app-specific string that uniquely identifies the downloadable asset.

  • request:

    A URL request that provides request-specific information, such as URL, request type, and body data.

  • applicationGroupIdentifier:

    The identifier of the App Group where the system stores finished downloads. For more information about App Groups, see Configuring App Groups.

  • priority:

    The priority of the download. For more information, see Priority Swift.struct.

Discussion

The system requires that all URL requests use Hypertext Transfer Protocol Secure (HTTPS).

See Also

Creating a download