AdObserver

open class AdObserver

The ad observer interface which receive notifications from the playback session tracker.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun onAdBeaconResponse(adData: AdData, beaconInfo: AdData.TrackingEvent, beaconUrl: String, status: Int)

For the tracker to notify about the response status of an ad-beacon request.

Link copied to clipboard
open fun onAdClick(adData: AdData)

For the tracker to notify about the current ad being clicked.

Link copied to clipboard
open fun onAdEnd(adData: AdData)

For the tracker to notify about the end of playback of an ad.

Link copied to clipboard
open fun onAdLoad(adData: AdData)

For the tracker to notify about an ad being loaded (playback will start soon).

Link copied to clipboard
open fun onAdProgress(adData: AdData, adElapsedTime: Double, playhead: Double)

For the tracker to notify about the progress of playback of an ad.

Link copied to clipboard
open fun onAdStart(adData: AdData, adElapsedTime: Double, playhead: Double)

For the tracker to notify about the start of playback of an ad.

Link copied to clipboard
open fun onAdTrackingEvent(adData: AdData, adTrackingEvent: AdTrackingEvent)

For the tracker to notify about an ad tracking event.

Link copied to clipboard
open fun onNewAd(adData: AdData, isReplacement: Boolean)

For the tracker to notify about a new ad data coming into existence.

Link copied to clipboard

For the tracker to notify about a new nonlinear ad data coming into existence.

Link copied to clipboard

For the tracker to notify about the end of a nonlinear ad.

Link copied to clipboard
open fun onNonLinearAdsStart(adData: NonLinearAdsData, adElapsedTime: Double, playhead: Double)

For the tracker to notify about the start of a nonlinear ad.

Link copied to clipboard

For the tracker to notify about the end of processing of an ad tracking info response.