AdPodcastManager
@objc(AASDKAdPodcastManager)
open class AdPodcastManager : NSObject, Identifiable
The AdPodcastManager supports playing a local or a streamed podcast either with the internal player or an external player.
-
A unique identifier for the object to be
identifiable.Declaration
Swift
@objc public let objectId: UUID -
Optional delegate for the
AdPodcastManager. SeeAdPodcastManagerDelegatefor available callbacks.Declaration
Swift
@objc public weak var delegate: AdPodcastManagerDelegate? -
The
AdPodcastManagersettings.Declaration
Swift
@objc public var adPodcastManagerSettings: AdPodcastManagerSettings -
Start playing a podcast at
url. Can be a local address (path) or http/https.Declaration
Swift
@objc open func play(with url: URL) throwsParameters
urllocal or http/https address
-
Stop the current podcast.
Declaration
Swift
@objc open func stop() -
Pause the current podcast.
Declaration
Swift
@objc open func pause() -
Resume the current podcast.
Declaration
Swift
@objc open func resume() -
Sets the current playback time to the specified
timein seconds. Note that it is only available for the internal player. Thecompletionblock won’t get called if an error is thrown. If you are using your own player, the SDK will automatically detect the seek and adjust the tracking for various events during playback.Throws
Can throw an error if seek cannot be performed or is not allowed (e.g for an external player)Declaration
Swift
@objc open func seek(to time: TimeInterval, completion: @escaping () -> Void) throwsParameters
timethe time to which to seek, in seconds
completionthe completion block that signals the seek operation has finished
-
Undocumented
Declaration
Swift
override open func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?)