A class that holds status information about an ad break.
Nested Class Summary
class | AdBreakStatus.Builder | Builder class for AdBreakStatus . |
Constant Summary
int | AD_BREAK_CLIP_NOT_SKIPPABLE | This constant is deprecated. This constant
is essentially the same as
AdBreakClipInfo.AD_BREAK_CLIP_NOT_SKIPPABLE but this constant has the
wrong type historically. Use
AdBreakClipInfo.AD_BREAK_CLIP_NOT_SKIPPABLE instead. |
Inherited Constant Summary
Public Method Summary
boolean | |
String |
getBreakClipId()
Returns the ID of the current ad break clip.
|
String |
getBreakId()
Returns the ID of the current ad break.
|
long |
getCurrentBreakClipTimeInMs()
Returns the current position of the ad break clip, in milliseconds, from the
start of the ad break clip.
|
long |
getCurrentBreakTimeInMs()
Returns the current position of the ad break, in milliseconds, from the start
of the ad break.
|
long |
getWhenSkippableInMs()
Returns the number of milliseconds after the ad break clip starts when the user
can skip the ad break clip.
|
int |
hashCode()
|
void |
writeToParcel(Parcel out, int
flags)
|
Inherited Method Summary
Constants
public static final int AD_BREAK_CLIP_NOT_SKIPPABLE
This constant is deprecated.
This constant is essentially the same as
AdBreakClipInfo.AD_BREAK_CLIP_NOT_SKIPPABLE
but this constant has the wrong
type historically. Use
AdBreakClipInfo.AD_BREAK_CLIP_NOT_SKIPPABLE
instead.
Public Methods
public boolean equals (Object other)
public String getBreakClipId ()
Returns the ID of the current ad break clip. The corresponding AdBreakClipInfo
can be obtained by looking up the ID in the list returned by MediaInfo.getAdBreakClips()
.
public String getBreakId ()
Returns the ID of the current ad break. The corresponding AdBreakInfo
can be obtained by looking up the ID in the list returned by MediaInfo.getAdBreaks()
.
public long getCurrentBreakClipTimeInMs ()
Returns the current position of the ad break clip, in milliseconds, from the start of the ad break clip.
public long getCurrentBreakTimeInMs ()
Returns the current position of the ad break, in milliseconds, from the start of the ad break.
public long getWhenSkippableInMs ()
Returns the number of milliseconds after the ad break clip starts when the user can
skip the ad break clip. If this method returns
AdBreakClipInfo.AD_BREAK_CLIP_NOT_SKIPPABLE
, then the ad break cannot be
skipped.