AdswizzAdPodcastManager

The AdszwizzPodcastManager supports playing a local or streamed podcast either with the internal player or an external player.

Constructors

Link copied to clipboard
constructor(settings: AdPodcastManagerSettings? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Add an AdPodcastManagerDownloadListener to receive events while downloading the podcast. The listener is saved as a strong reference, so the caller is responsible for releasing it.

Link copied to clipboard

Add an AdPodcastManager.Listener to receive events while playing a podcast. The listener is saved as a strong reference, so the caller is responsible for releasing it.

Link copied to clipboard
open override fun cleanup()
Link copied to clipboard
fun pause()

Pause the podcast.

Link copied to clipboard
open override fun play(uri: Uri)

Play the podcast.

Link copied to clipboard

Remove a previously added AdPodcastManagerDownloadListener.

Link copied to clipboard

Remove a previously added AdPodcastManager.Listener.

Link copied to clipboard
fun removePodcast(location: Uri)
Link copied to clipboard
fun resume()

Resume the podcast.

Link copied to clipboard
open fun seekTo(position: Double)

Move the playing head to position.

Link copied to clipboard
fun skipAd()

Skip the currently playing ad.

Link copied to clipboard
fun startDownloadPodcast(uri: Uri, location: Uri, completion: (Boolean, Exception?) -> Unit? = null)
Link copied to clipboard
open fun stop()

Stop the podcast.

Link copied to clipboard
fun stopDownloadPodcast(location: Uri)