java.lang.Object | |
↳ | com.google.android.gms.cast.AdBreakInfo |
A class that aggregates information about an ad that is playing or will be played on the
receiver. The sender app may use instances of this class to draw ad breaks on a SeekBar
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AdBreakInfo.Builder | A builder for AdBreakInfo . |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an unmodifiable list of ad break clip IDs in this break.
| |||||||||||
Returns this break content’s duration in milliseconds.
| |||||||||||
Returns this break's ID.
| |||||||||||
Returns this break content’s playback position in milliseconds at which the ad will begin
playing relative to the start of the video.
| |||||||||||
Returns
true if this break doesn't have a URL and is part of the content. | |||||||||||
Returns
true if this break has been watched. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Parameters | |
---|---|
other |
Object |
Returns | |
---|---|
boolean |
Returns an unmodifiable list of ad break clip IDs in this break. The list of matching AdBreakClipInfo
objects can be obtained by calling getAdBreakClips()
.
Returns | |
---|---|
String[] |
Returns this break content’s duration in milliseconds.
Returns | |
---|---|
long |
Returns this break's ID.
Returns | |
---|---|
String |
Returns this break content’s playback position in milliseconds at which the ad will begin playing relative to the start of the video. If position is 0, the pre-roll break will play before the video starts. If position is -1, the post-roll break will play at the end of the video (only if isEmbedded is false).
Returns | |
---|---|
long |
Returns | |
---|---|
int |
Returns true
if this break doesn't have a URL and is part of the content.
Returns | |
---|---|
boolean |
Returns true
if this break has been watched.
Returns | |
---|---|
boolean |
Parameters | |
---|---|
out |
Parcel |
flags |
int |