AdPodcastManagerDownloadDelegate
@objc(AASDKAdPodcastManagerDownloadDelegate)
public protocol AdPodcastManagerDownloadDelegate
The AdPodcastManagerDownloadDelegate protocol defines the methods used to get information during podcast downloads.
-
Called when an asset has downloaded a chunk of its data.
Declaration
Swift
func adPodcastManager(_ adPodcastManager: AdPodcastManager, didDownload bytesDownloaded: Int64, outOf bytesExpected: Int64, for asset: DownloadableAsset)Parameters
adPodcastManagerthe podcast manager
bytesDownloadedthe total bytes downloaded so far
bytesExpectedthe total bytes to download
assetthe downloadable asset
-
Called when an asset has finished downloading all of its data.
Declaration
Swift
func adPodcastManager(_ adPodcastManager: AdPodcastManager, didFinishDownload asset: DownloadableAsset)Parameters
adPodcastManagerthe podcast manager
assetthe asset
-
Called when an asset has encountered an error during download.
Declaration
Swift
func adPodcastManager(_ adPodcastManager: AdPodcastManager, didReceive error: Error, for asset: DownloadableAsset)Parameters
adPodcastManagerthe podcast manager
errorthe error received
assetthe asset