Package com.theoplayer.android.api.ads
Class AdBreakInit
-
- All Implemented Interfaces:
@ApiStatus.Experimental() public final class AdBreakInit
An initializer for a custom AdBreak.
-
-
Field Summary
Fields Modifier and Type Field Description private final Integer
timeOffset
private final Integer
maxDuration
private Object
customData
-
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 Integer
getTimeOffset()
The time offset at which content will be paused to play the ad break, in seconds. final Integer
getMaxDuration()
The duration of the ad break, in seconds. final Object
getCustomData()
Additional integration-specific data associated with this ad break. final Unit
setCustomData(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.
-
-
-
-