Contents

startForegroundDownload(_:)

Schedules an asset download that executes immediately in the foreground.

Declaration

func startForegroundDownload(_ download: BADownload) throws

Parameters

  • download:

    The object that provides the URL of the asset to download.

Discussion

Use this method to start new asset downloads immediately, or to promote existing, queued downloads that are yet to start. Only use this method in your app; the framework throws an error if you attempt to start a foreground download in your extension.

See Also

Managing downloads