java.lang.Object | |
↳ | com.google.android.gms.cast.AdBreakInfo.Builder |
A builder for AdBreakInfo
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a
AdBreakInfo.Builder . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Set an unmodifiable list of ad break clip IDs in this break.
| |||||||||||
Sets this break content’s duration in milliseconds.
| |||||||||||
Sets the ad break's ID.
| |||||||||||
Set to
true if this break doesn't have a URL and is part of the content. | |||||||||||
Set to
true if this break has been watched. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Construct a AdBreakInfo.Builder
.
Parameters | |
---|---|
playbackPositionInMs |
long : The content’s playback position in milliseconds at which the ad
will begin playing. This is a required field.
|
Set an unmodifiable list of ad break clip IDs in this break. The list of matching AdBreakClipInfo
objects can be obtained by calling getAdBreakClips()
. This
is a required field.
Parameters | |
---|---|
breakClipIds |
String |
Returns | |
---|---|
AdBreakInfo.Builder |
Sets this break content’s duration in milliseconds.
Parameters | |
---|---|
durationInMs |
long |
Returns | |
---|---|
AdBreakInfo.Builder |
Set to true
if this break doesn't have a URL and is part of the content.
Parameters | |
---|---|
isEmbedded |
boolean |
Returns | |
---|---|
AdBreakInfo.Builder |
Set to true
if this break has been watched.
Parameters | |
---|---|
isWatched |
boolean |
Returns | |
---|---|
AdBreakInfo.Builder |