AdPlayer

interface AdPlayer<T>

Represents the contract of an AdPlayer. AdPlayer is a player designed to play ads.

Parameters

<T>

the type of an Ad to handle.

Types

Link copied to clipboard
open class AdPlayerSettings
Link copied to clipboard
interface Listener<T>
Represents the callbacks from an AdPlayer.

Functions

Link copied to clipboard
abstract fun addListener(listener: AdPlayer.Listener<T>)
Adds a Listener.
Link copied to clipboard
abstract fun loadAd(ad: T)
Loads an ad of type T.
Link copied to clipboard
abstract fun pauseAd()
Pauses an ad.
Link copied to clipboard
abstract fun playAd()
Plays an ad.
Link copied to clipboard
abstract fun release()
Releases the AdPlayer.
Link copied to clipboard
abstract fun removeListener(listener: AdPlayer.Listener<T>)
Removes a Listener.
Link copied to clipboard
abstract fun seekTo(position: Long)
Seeks to the specified position.
Link copied to clipboard
abstract fun skipAd()
Skips the current ad.