AI-generated Key Takeaways
-
The
AdBreakStatus.Builderclass is used to build anAdBreakStatusobject. -
It provides methods to set the ID of the ad break and the current ad break clip.
-
You can set the current time within the ad break and the ad break clip in milliseconds.
-
There is a method to specify when the ad break clip becomes skippable in milliseconds.
-
The
build()method creates the finalAdBreakStatusobject.
Builder class for AdBreakStatus.
Public Constructor Summary
|
Builder()
|
Public Method Summary
| AdBreakStatus |
build()
Builds an
AdBreakStatus.
|
| AdBreakStatus.Builder | |
| AdBreakStatus.Builder | |
| AdBreakStatus.Builder |
setCurrentBreakClipTimeInMs(long currentBreakClipTimeInMs)
Sets the current position of the ad break clip, in milliseconds, from the start
of the ad break clip.
|
| AdBreakStatus.Builder |
setCurrentBreakTimeInMs(long currentBreakTimeInMs)
Sets the current position of the ad break, in milliseconds, from the start of
the ad break.
|
| AdBreakStatus.Builder |
setWhenSkippableInMs(long whenSkippableInMs)
Sets the number of milliseconds after the ad break clip starts when the user
can skip the ad break clip.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public AdBreakStatus build ()
Builds an AdBreakStatus.
public AdBreakStatus.Builder setBreakClipId (String breakClipId)
Sets the ID of the current ad break clip.
public AdBreakStatus.Builder setBreakId (String breakId)
Sets the ID of the current ad break.
public AdBreakStatus.Builder setCurrentBreakClipTimeInMs (long currentBreakClipTimeInMs)
Sets the current position of the ad break clip, in milliseconds, from the start of the ad break clip.
public AdBreakStatus.Builder setCurrentBreakTimeInMs (long currentBreakTimeInMs)
Sets the current position of the ad break, in milliseconds, from the start of the ad break.
public AdBreakStatus.Builder setWhenSkippableInMs (long whenSkippableInMs)
Sets the number of milliseconds after the ad break clip starts when the user can skip the ad break clip.
If set as
AdBreakClipInfo.AD_BREAK_CLIP_NOT_SKIPPABLE, then the ad break cannot be
skipped.
The default value is
AdBreakClipInfo.AD_BREAK_CLIP_NOT_SKIPPABLE.