public class AdPod
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addAdBreak(AdBreak adBreak)
Adds an Ad break.
|
static AdPod |
create(long relativeStartPosition)
Creates an Ad pod with a empty list of
AdBreak s. |
static AdPod |
create(long relativeStartPosition,
java.util.Deque<AdBreak> adBreaks)
Creates an Ad pod with a given list of
AdBreak s. |
static AdPod |
empty()
Creates an Ad pod with a empty list of
AdBreak s. |
long |
getAbsoluteEndPosition()
Gets the absolute end position.
|
long |
getAbsoluteStartPosition()
Gets the absolute start position.
|
Ad<?> |
getAdAt(long absolutePosition)
Gets ad at a given absolute position.
|
AdBreak |
getAdBreakAt(long absolutePosition)
Gets ad break at a given absolute position.
|
java.util.Collection<AdBreak> |
getAdBreakList()
Gets the Ad break list.
|
long |
getDuration()
Gets the total Ad pod duration.
|
long |
getRelativeStartPosition()
Gets the relative start position.
|
boolean |
isEmpty()
|
public static AdPod empty()
AdBreak
s.public boolean isEmpty()
public static AdPod create(long relativeStartPosition)
AdBreak
s.relativeStartPosition
- the relative start positionpublic static AdPod create(long relativeStartPosition, @NonNull java.util.Deque<AdBreak> adBreaks)
AdBreak
s.relativeStartPosition
- the relative start positionadBreaks
- the ad breakspublic java.util.Collection<AdBreak> getAdBreakList()
public void addAdBreak(AdBreak adBreak)
adBreak
- the ad breakpublic long getRelativeStartPosition()
public long getAbsoluteStartPosition()
public long getAbsoluteEndPosition()
public long getDuration()
@Nullable public AdBreak getAdBreakAt(long absolutePosition)
absolutePosition
- the absolute position@Nullable public Ad<?> getAdAt(long absolutePosition)
absolutePosition
- the absolute position