Listener

interface Listener<T>

Represents the callbacks from an AdPlayer.

Parameters

<T>

the type of Ad handled by the AdPlayer.

Functions

Link copied to clipboard
abstract fun onAdCompleted(ad: T)
Called when an Ad is completed.
Link copied to clipboard
abstract fun onAdPaused(ad: T)
Called when an Ad is paused.
Link copied to clipboard
abstract fun onAdProgress(position: Long, ad: T)
Called when an ad has made progress.
Link copied to clipboard
abstract fun onAdResumed(ad: T)
Called when an ad is resumed.
Link copied to clipboard
abstract fun onAdSkipped(ad: T)
Called when an ad is skipped.
Link copied to clipboard
abstract fun onAdStarted(ad: T)
Called when an Ad is started.
Link copied to clipboard
abstract fun onDurationChanged(duration: Long)
Called when an Ad duration has been changed.
Link copied to clipboard
open fun onError(e: Exception)
abstract fun onError(ad: T, e: Exception)
Called when an error happened.