Package com.theoplayer.android.api.ads
Class AdBreakInit
-
- All Implemented Interfaces:
public final class AdBreakInitAn initializer for a custom AdBreak.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegertimeOffsetprivate final IntegermaxDurationprivate ObjectcustomData
-
Constructor Summary
Constructors Constructor Description AdBreakInit(Integer timeOffset, Integer maxDuration, Object customData)AdBreakInit(Integer timeOffset, Integer maxDuration)AdBreakInit(Integer timeOffset)AdBreakInit()
-
Method Summary
Modifier and Type Method Description final IntegergetTimeOffset()The time offset at which content will be paused to play the ad break, in seconds. final IntegergetMaxDuration()The duration of the ad break, in seconds. final ObjectgetCustomData()Additional integration-specific data associated with this ad break. final UnitsetCustomData(Object customData)Additional integration-specific data associated with this ad break. -
-
Method Detail
-
getTimeOffset
final Integer getTimeOffset()
The time offset at which content will be paused to play the ad break, in seconds.
Required when used in ServerSideAdIntegrationController.createAdBreak.
Ignored when used in ServerSideAdIntegrationController.updateAdBreak.
-
getMaxDuration
final Integer getMaxDuration()
The duration of the ad break, in seconds.
-
getCustomData
final Object getCustomData()
Additional integration-specific data associated with this ad break.
-
setCustomData
final Unit setCustomData(Object customData)
Additional integration-specific data associated with this ad break.
-
-
-
-