ShouldDiscardAdItemCallback

com.bitmovin.player.api.advertising

ShouldDiscardAdItemCallback

fun interface ShouldDiscardAdItemCallback

Invoked when an attempt to play an AdItem ended, to decide whether the AdItem is discarded or kept for a later opportunity.

See also

Functions

NameSummary
shouldDiscardAdItem@ExperimentalBitmovinApi
abstract fun shouldDiscardAdItem(adItem: AdItem, context: AdItemDiscardContext): AdItemDiscardDecision
Returns AdItemDiscardDecision.Discard to discard the adItem, or AdItemDiscardDecision.Keep to keep it for a later opportunity. Return AdItemDiscardContext.discardPolicyDecision to apply the default behavior.