ended

abstract fun ended(payload: ByteArray, elapsedTime: Duration?, reason: AdReasonType, macroContext: MacroContext?): ByteArray

Signals the end of the ad with a specified reson type.

Return

an updated payload reflecting the tracking state after the call.

Parameters

payload

serialized ad payload.

elapsedTime

time elapsed since the ad started playing, or null if not applicable.

reason

the AdReasonType describing why the ad ended.

macroContext

optional context used to expand tracking-URL macros.

Throws


abstract fun ended(payload: ByteArray, elapsedTime: Duration?, reason: AdReasonType, macroContext: MacroContext?): ByteArray

Java-friendly overload of ended accepting a java.time.Duration.

See also