AdPodcastManager

abstract class AdPodcastManager

Base interface for managing podcasts. Subclassed by AdszwizzPodcastManager for playing a local or streamed podcast.

Inheritors

Constructors

Link copied to clipboard
constructor(settings: AdPodcastManagerSettings?)

Types

Link copied to clipboard
interface Listener

The AdPodcastManager.Listener interface defines the methods used to get information about ads and companion banners inserted during podcast playback.

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 fun cleanup()
Link copied to clipboard
fun pause()

Pause the podcast.

Link copied to clipboard
open 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 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
open fun stop()

Stop the podcast.