Google is committed to advancing racial equity for Black communities. See how.

AdBreakStatus.Builder

public static class AdBreakStatus.Builder extends Object

Builder class for AdBreakStatus.

Public Constructor Summary

Public Method Summary

AdBreakStatus
build()
Builds an AdBreakStatus.
AdBreakStatus.Builder
setBreakClipId(String breakClipId)
Sets the ID of the current ad break clip.
AdBreakStatus.Builder
setBreakId(String breakId)
Sets the ID of the current ad break.
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 AdBreakStatus.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 AD_BREAK_CLIP_NOT_SKIPPABLE, then the ad break cannot be skipped.

The default value is AD_BREAK_CLIP_NOT_SKIPPABLE.