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
adPodcastManager
the podcast manager
bytesDownloaded
the total bytes downloaded so far
bytesExpected
the total bytes to download
asset
the downloadable asset
-
Called when an asset has finished downloading all of its data.
Declaration
Swift
func adPodcastManager(_ adPodcastManager: AdPodcastManager, didFinishDownload asset: DownloadableAsset)
Parameters
adPodcastManager
the podcast manager
asset
the asset
-
Called when an asset has encountered an error during download.
Declaration
Swift
func adPodcastManager(_ adPodcastManager: AdPodcastManager, didReceive error: Error, for asset: DownloadableAsset)
Parameters
adPodcastManager
the podcast manager
error
the error received
asset
the asset