AdBreakStatus

public class AdBreakStatus extends Object
implements Parcelable

A class that holds status information about an ad break.

Constant Summary

int AD_BREAK_CLIP_NOT_SKIPPABLE

Inherited Constant Summary

Public Method Summary

boolean
equals(Object other)
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
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Constants

public static final int AD_BREAK_CLIP_NOT_SKIPPABLE

Constant Value: -1

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 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 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 AD_BREAK_CLIP_NOT_SKIPPABLE, then the ad break cannot be skipped.

public int hashCode ()

public void writeToParcel (Parcel out, int flags)