AdswizzAdPodcastManager
@MainActor
@objc(AASDKAdswizzAdPodcastManager)
public class AdswizzAdPodcastManager : AdPodcastManager
An AdswizzAdPodcastManager allows for AdswizzSDK to deliver all the podcast functionality, including Remote Audio Data (RAD) support and measurement.
-
The HTTP/HTTPS protocol the
AdswizzAdPodcastManagerwill use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc @MainActor public let httpProtocol: HTTPProtocol -
The ad server that the
AdswizzAdPodcastManagerwill use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc @MainActor public let adServer: String -
The companion zoneId that the
AdswizzAdPodcastManagerwill use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc @MainActor public let companionZone: String? -
Delegate for events related to the podcast download
Declaration
Swift
@objc @MainActor public weak var downloadDelegate: AdPodcastManagerDownloadDelegate? -
Play a podcast from a remote or local
url.Declaration
Swift
@MainActor override public func play(with url: URL) throws -
Stop the current podcast.
Declaration
Swift
@MainActor override public func stop() -
startDownloadPodcast(with:Asynchronousto: ) Start downloading a podcast media file from
urland save it to alocationfile path on disk. Can throw an error if the podcast is already downloading atlocation.Declaration
Swift
@MainActor public func startDownloadPodcast(with url: URL, to location: URL) async throwsParameters
urlthe original remote URL to download from
locationthe file path URL on disk where the file will be saved once it’s fully downloaded
-
stopDownloadPodcast(at:Asynchronous) Cancel downloading a podcast media file at
locationfile path. Can throw an error if a podcast download is not in progress.Declaration
Swift
@MainActor public func stopDownloadPodcast(at location: URL) async throwsParameters
locationthe file path URL on disk where the file is currently downloading
-
Remove a podcast media file from file path
locationon disk. Can throw an error if the file is not found.Declaration
Swift
@MainActor public func removePodcast(at location: URL) throwsParameters
locationthe file path URL on disk
-
Builder to conveniently create an
See moreAdswizzAdPodcastManagerinstance.Declaration
Swift
@objc(AASDKAdswizzAdPodcastManagerBuilder) public class Builder : NSObject