Contents

statusUpdates(forAssetPackWithID:)

Returns an asynchronous sequence of download-status updates for the asset pack with the specified ID.

Declaration

nonisolated func statusUpdates(forAssetPackWithID assetPackID: String) -> some Sendable & AsyncSequence<AssetPackManager.DownloadStatusUpdate, Never>

Parameters

  • assetPackID:

    The asset pack’s ID.

Mentioned in

Return Value

An asynchronous sequence of download-status updates.

Discussion

The sequence finishes after yielding AssetPackManager.DownloadStatusUpdate.finished(_:) or AssetPackManager.DownloadStatusUpdate.failed(_:_:).

See Also

Tracking downloads