SlotAdsProviderCallbacks

Superset of AdsProviderCallbacks for slot providers. Implemented by the SDK core; must be called on the application main thread.

Functions

Link copied to clipboard
abstract fun onAdBreakCompleted(breakType: AdBreakType)
Link copied to clipboard
abstract fun onAdBreakStarted(breakType: AdBreakType, totalAds: Int)
Link copied to clipboard
abstract fun onAdCompleted(ad: AdInfo)
Link copied to clipboard
abstract fun onAdCuePointsChanged(cuePositionsMs: List<Long>, hasPostroll: Boolean)

Remaining (unplayed) midroll positions in content time, plus whether a postroll slot exists (core appends the content duration as its cue). Called after the ad request completes and again whenever a slot is consumed.

Link copied to clipboard
abstract fun onAdError(error: OGAdError)
Link copied to clipboard
abstract fun onAdPaused(ad: AdInfo)
Link copied to clipboard
abstract fun onAdProgress(ad: AdInfo, positionMs: Long, durationMs: Long)

Playback progress of the current ad (drives the chrome countdown).

Link copied to clipboard
abstract fun onAdResumed(ad: AdInfo)
Link copied to clipboard
abstract fun onAdSkippableStateChanged(ad: AdInfo, isSkippable: Boolean, skipOffsetMs: Long)

The current ad's skippable state changed.

Link copied to clipboard
abstract fun onAdSkipped(ad: AdInfo)
Link copied to clipboard
abstract fun onAdStarted(ad: AdInfo)
Link copied to clipboard
abstract fun onAllAdsCompleted()

Postrolls finished (or none existed) after onContentEnded — core now reports playback completion to the app.