AdManager

Properties

Link copied to clipboard

Ad manager settings object

Link copied to clipboard
abstract val ads: List<AdData>

Contains the initial ads obtained as a result of parsing the VAST response.

Link copied to clipboard

Used to add custom data to analytics events that are related to the ad lifecycle.

Functions

Link copied to clipboard
abstract fun getCurrentTime(): Double

Gets the current time.

Link copied to clipboard
abstract fun pause()

Pauses the ad.

Link copied to clipboard
abstract fun play()

Starts the ad.

Link copied to clipboard
abstract fun prepare()

Prepares and loads the ads.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Remove current AdManagerListener

Link copied to clipboard
abstract fun reset()

Causes the ad manager to stop the ad and clean its internal state.

Link copied to clipboard
abstract fun resume()

Resumes the advertisement.

Link copied to clipboard
abstract fun setAdapter(adapter: AdBaseManagerAdapter)

Sets an adapter.

Link copied to clipboard
abstract fun setListener(listener: AdBaseManagerListener)

Sets a listener.

abstract fun setListener(listener: AdManagerListener)

Set a listener

Link copied to clipboard
abstract override fun skipAd()

If an ad break is currently playing, discard it and resume content. Otherwise, ignore the next scheduled ad break.

open fun skipAd(error: Error)

Skip current ad with an error reason Does not track skip event, but fires error with Vast code 400