AdswizzAdPodcastManager
@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
AdswizzAdPodcastManager
will use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc public let httpProtocol: HTTPProtocol
-
The ad server that the
AdswizzAdPodcastManager
will use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc public let adServer: String
-
The companion zoneId that the
AdswizzAdPodcastManager
will use internally for retrieving the companion banner of an ad with display capabilities.Declaration
Swift
@objc public let companionZone: String?
-
Delegate for events related to the podcast download
Declaration
Swift
@objc public weak var downloadDelegate: AdPodcastManagerDownloadDelegate?
-
Play a podcast from a remote or local
url
.Declaration
Swift
override public func play(with url: URL) throws
-
Stop the current podcast.
Declaration
Swift
override public func stop()
-
Start downloading a podcast media file from
url
and save it to alocation
file path on disk. Can throw an error if the podcast is already downloading atlocation
.Declaration
Swift
public func startDownloadPodcast(with url: URL, to location: URL) throws
Parameters
url
the original remote URL to download from
location
the file path URL on disk where the file will be saved once it’s fully downloaded
-
Cancel downloading a podcast media file at
location
file path. Can throw an error if a podcast download is not in progress.Declaration
Swift
public func stopDownloadPodcast(at location: URL) throws
Parameters
location
the file path URL on disk where the file is currently downloading
-
Remove a podcast media file from file path
location
on disk. Can throw an error if the file is not found.Declaration
Swift
public func removePodcast(at location: URL) throws
Parameters
location
the file path URL on disk
-
Builder to conveniently create an
See moreAdswizzAdPodcastManager
instance.Declaration
Swift
@objc(AASDKAdswizzAdPodcastManagerBuilder) public class Builder : NSObject