Contents

downloadResources(timeout:subprogress:)

Downloads the resources required to render cinematic effects for the given asset Resources are device-wide and are cached once downloaded

Declaration

@discardableResult func downloadResources(timeout: TimeInterval = defaultResourceDownloadTimeout, subprogress: consuming Subprogress? = nil) async throws -> CNAssetInfo

Parameters

  • subprogress:

    Monitors the download progress

Discussion

Cancellation: this method responds to Swift Task cancellation. If the calling task is cancelled, the download stops; any partially downloaded resources are discarded.