AdBreak

open class AdBreak

Representation of an AdBreak.

Functions

Link copied to clipboard
open fun <T> create(adsOffset: Long, input: T, mapper: Function2<T, Long, AdBreak>): AdBreak
Creates an AdBreak from a T type object.
open fun create(startPosition: Long, endPosition: Long, ads: Collection<Ad>): AdBreak
Creates an AdBreak with startPosition, endPosition and ads.
open fun create(id: String, startPosition: Long, endPosition: Long, ads: Collection<Ad>): AdBreak
Creates an AdBreak with an Id, startPosition, endPosition and ads.
Link copied to clipboard
open fun createSlate(absoluteStartPositionMs: Long, absoluteEndPositionMs: Long): AdBreak
Creates an Slate Ad Break.
Link copied to clipboard
Returns the absolute end position of the AdBreak.
Link copied to clipboard
Returns the absolute start position of the AdBreak.
Link copied to clipboard
open fun getAdAt(currentAbsolutePosition: Long): Ad<out Any>
Link copied to clipboard
open fun getAds(): Collection<Ad>
Returns the ads of the AdBreak.
Link copied to clipboard
open fun getDuration(): Long
Returns the duration of the AdBreak.
Link copied to clipboard
open fun getId(): String
Link copied to clipboard
open fun isSlate(): Boolean