Instance Method

addAsset(with:)

Adds an asset to the list of assets to be downloaded and returns an instance representing that asset.

Declaration

func addAsset(with request: URLRequest) -> NKAssetDownload

Parameters

request

An object representing a URL request.

Return Value

An instance of NKAssetDownload, which represents an issue asset that can be downloaded from the application’s server. Returns nil if there a problem creating the object.

Discussion

You must send download(with:) to the returned object to begin the downloading of the asset.

See Also

Managing Issue Assets

var downloadingAssets: [NKAssetDownload]

Returns the assets that are currently downloading for the newsstand issue.