java.lang.Object | |
↳ | com.google.android.gms.cast.AdBreakClipInfo.Builder |
A builder for AdBreakClipInfo
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a
AdBreakClipInfo.Builder . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets this clip's click through URL.
| |||||||||||
Sets this clip's content ID.
| |||||||||||
Sets this clip's content URL.
| |||||||||||
Sets this clip's custom data as a string.
| |||||||||||
Sets this clip's duration in milliseconds.
| |||||||||||
Sets
HlsSegmentFormat of the ad break clip, or empty String if not set. | |||||||||||
Sets this clip's image URL.
| |||||||||||
Sets this clip's mime type.
| |||||||||||
Sets this clip's title.
| |||||||||||
Sets the time in milliseconds when this break clip becomes skippable.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Construct a AdBreakClipInfo.Builder
.
Parameters | |
---|---|
id |
String : The ad clip's ID, referenced by AdBreakInfo
|
Sets this clip's click through URL.
Parameters | |
---|---|
clickThroughUrl |
String |
Returns | |
---|---|
AdBreakClipInfo.Builder |
Sets this clip's content ID. Typically the URL of the break clip (playing on the receiver).
Parameters | |
---|---|
contentId |
String |
Returns | |
---|---|
AdBreakClipInfo.Builder |
Sets this clip's content URL. If contentUrl is provided, the receiver will use it as the content's URL, otherwise contentId will be used to load the clip on the receiver.
Parameters | |
---|---|
contentUrl |
String |
Returns | |
---|---|
AdBreakClipInfo.Builder |
Sets this clip's custom data as a string.
Parameters | |
---|---|
customDataJsonString |
String |
Returns | |
---|---|
AdBreakClipInfo.Builder |
Sets this clip's duration in milliseconds.
Parameters | |
---|---|
durationInMs |
long |
Returns | |
---|---|
AdBreakClipInfo.Builder |
Sets HlsSegmentFormat
of the ad break clip, or empty String
if not set.
Parameters | |
---|---|
hlsSegmentFormat |
String |
Returns | |
---|---|
AdBreakClipInfo.Builder |
Sets the time in milliseconds when this break clip becomes skippable. a value of 5000 means
that end user can skip this break clip after 5 seconds. A value of AD_BREAK_CLIP_NOT_SKIPPABLE
means that current break clip is not skippable.
Parameters | |
---|---|
whenSkippableInMs |
long |
Returns | |
---|---|
AdBreakClipInfo.Builder |