public class

AdBreakStatus

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.cast.AdBreakStatus

Class Overview

A class that holds status information about an ad break.

Summary

Constants
int AD_BREAK_CLIP_NOT_SKIPPABLE
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
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 hashCode()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int AD_BREAK_CLIP_NOT_SKIPPABLE

Constant Value: -1 (0xffffffff)

Public Methods

public boolean equals (Object other)

Parameters
other Object
Returns
boolean

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().

Returns
String

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().

Returns
String

public long getCurrentBreakClipTimeInMs ()

Returns the current position of the ad break clip, in milliseconds, from the start of the ad break clip.

Returns
long

public long getCurrentBreakTimeInMs ()

Returns the current position of the ad break, in milliseconds, from the start of the ad break.

Returns
long

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.

Returns
long

public int hashCode ()

Returns
int

public void writeToParcel (Parcel out, int flags)

Parameters
out Parcel
flags int