# AdBreakClipInfo

public class **AdBreakClipInfo** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) A class that aggregates information about an ad break clip.

### Nested Class Summary

|---|---|---|---|
| class | [AdBreakClipInfo.Builder](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo.Builder) || A builder for `https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo`. |

### Constant Summary

|---|---|---|
| long | [AD_BREAK_CLIP_NOT_SKIPPABLE](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#AD_BREAK_CLIP_NOT_SKIPPABLE) | Special constant for `https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getWhenSkippableInMs()` to indicate an ad break clip is not skippable. |

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Method Summary

|---|---|
| boolean | [equals](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) other) |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getClickThroughUrl](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getClickThroughUrl())() Returns this clip's click through URL. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getContentId](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getContentId())() Returns this clip's content ID. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getContentUrl](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getContentUrl())() Returns this clip's content URL. |
| [JSONObject](https://developer.android.com/reference/org/json/JSONObject.html) | [getCustomData](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getCustomData())() Returns this clip's custom data. |
| long | [getDurationInMs](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getDurationInMs())() Returns this clip's duration in milliseconds. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getHlsSegmentFormat](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getHlsSegmentFormat())() Returns `https://developers.google.com/android/reference/com/google/android/gms/cast/HlsSegmentFormat` of the ad break clip, or empty `String` if not set. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getId](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getId())() Returns this clip's ID. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getImageUrl](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getImageUrl())() Returns this clip's image URL. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getMimeType](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getMimeType())() Returns this clip's mime type. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getTitle](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getTitle())() Returns this clip's title. |
| [VastAdsRequest](https://developers.google.com/android/reference/com/google/android/gms/cast/VastAdsRequest) | [getVastAdsRequest](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getVastAdsRequest())() Returns the `https://developers.google.com/android/reference/com/google/android/gms/cast/VastAdsRequest` representing the VAST ad request configuration. |
| long | [getWhenSkippableInMs](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getWhenSkippableInMs())() Returns the time in milliseconds when this break clip becomes skippable. |
| int | [hashCode](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#hashCode())() |
| void | [writeToParcel](https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#writeToParcel(android.os.Parcel,%20int))([Parcel](https://developer.android.com/reference/android/os/Parcel.html) out, int flags) |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |

## Constants

#### public static final long
**AD_BREAK_CLIP_NOT_SKIPPABLE**

Special constant for `https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getWhenSkippableInMs()` to indicate an ad break clip is not skippable.
Constant Value: -1

## Public Methods

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) other)

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getClickThroughUrl** ()

Returns this clip's click through URL.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getContentId** ()

Returns this clip's content ID. Typically the URL of the break clip (playing on the
receiver).

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getContentUrl** ()

Returns 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.

#### public [JSONObject](https://developer.android.com/reference/org/json/JSONObject.html)
**getCustomData** ()

Returns this clip's custom data.

#### public long **getDurationInMs** ()

Returns this clip's duration in milliseconds.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getHlsSegmentFormat** ()

Returns `https://developers.google.com/android/reference/com/google/android/gms/cast/HlsSegmentFormat`
of the ad break clip, or empty `String` if not set.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getId** ()

Returns this clip's ID.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getImageUrl** ()

Returns this clip's image URL.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getMimeType** ()

Returns this clip's mime type.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getTitle** ()

Returns this clip's title.

#### public [VastAdsRequest](https://developers.google.com/android/reference/com/google/android/gms/cast/VastAdsRequest)
**getVastAdsRequest** ()

Returns the `https://developers.google.com/android/reference/com/google/android/gms/cast/VastAdsRequest`
representing the VAST ad request configuration. Used if `https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getContentId()`
or `https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getContentUrl()`
is not provided. Returns null if not a VAST ad break clip.

When the VAST ad is loaded from the server, the information from the ad will
override all other attributes of the `https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo`,
aside from `https://developers.google.com/android/reference/com/google/android/gms/cast/AdBreakClipInfo#getId()`.

#### public long **getWhenSkippableInMs** ()

Returns 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.

#### public int **hashCode** ()

#### public void **writeToParcel** ([Parcel](https://developer.android.com/reference/android/os/Parcel.html) out, int flags)