AdPod

open class AdPod

A representation of an Ad pod. An Ad pod is a sequenced group of Ads.

Functions

Link copied to clipboard
open fun addAdBreak(adBreak: AdBreak)
Adds an Ad break.
Link copied to clipboard
open fun create(relativeStartPosition: Long): AdPod
Creates an Ad pod with a empty list of AdBreaks.
open fun create(relativeStartPosition: Long, adBreaks: Deque<AdBreak>): AdPod
Creates an Ad pod with a given list of AdBreaks.
Link copied to clipboard
open fun empty(): AdPod
Creates an Ad pod with a empty list of AdBreaks.
Link copied to clipboard
Gets the absolute end position.
Link copied to clipboard
Gets the absolute start position.
Link copied to clipboard
open fun getAdAt(absolutePosition: Long): Ad<out Any>
Gets ad at a given absolute position.
Link copied to clipboard
open fun getAdBreakAt(absolutePosition: Long): AdBreak
Gets ad break at a given absolute position.
Link copied to clipboard
Gets the Ad break list.
Link copied to clipboard
open fun getDuration(): Long
Gets the total Ad pod duration.
Link copied to clipboard
Gets the relative start position.
Link copied to clipboard
open fun isEmpty(): Boolean
Returns true if this AdPod contains no AdBreaks.