Class AdBreak

com.yandex.mobile.ads.video.models.vmap

java.lang.Object ⇽ AdBreak

public class AdBreak

This class contains information about the ad break (the source and type of ad, the interval for timing the break, and other parameters).

Nested Classes

Constructors

AdBreak(@NonNull final Parcel in)

Methods

int describeContents()
AdSource getAdSource()

Returns the ad source for an ad break.

String getBreakId()

Returns the ID of an ad break.

List< String > getBreakTypes()

Returns the list of allowed ad break types.

List< Extension > getExtensions()

Returns the list of Extension objects.

Long getRepeatAfterMillis()

Returns the time interval in milliseconds after which the ad break should be repeated (AdBreak).

TimeOffset getTimeOffset()

Returns the value that shows when the ad break (AdBreak object) should be played.

void writeToParcel(@NonNull final Parcel dest, final int flags)

Fields

final Parcelable.Creator< AdBreak > CREATOR

Constructor Detail

AdBreak

protected AdBreak (@NonNull final Parcel in)

Method Detail

describeContents

public int describeContents ()

getAdSource

public AdSource getAdSource ()

Returns the ad source for an ad break.

Returns:

Ad source AdSource for ad breaks.

getBreakId

public String getBreakId ()

Returns the ID of an ad break.

Returns:

Ad break ID (BreakId).

getBreakTypes

public List< String > getBreakTypes ()

Returns the list of allowed ad break types.

See the types of ad breaks in BreakType.

Returns:

List of allowed ad break types.

getExtensions

public List< Extension > getExtensions ()

Returns the list of Extension objects.

Returns:

List of Extension objects.

getRepeatAfterMillis

public Long getRepeatAfterMillis ()

Returns the time interval in milliseconds after which the ad break should be repeated (AdBreak).

Returns:

Time interval in milliseconds after which the ad break should be repeated (AdBreak).

getTimeOffset

public TimeOffset getTimeOffset ()

Returns the value that shows when the ad break (AdBreak object) should be played.

Returns:

Value that shows when the ad break (AdBreak object) should be played.

writeToParcel

public void writeToParcel (@NonNull final Parcel dest, final int flags)

Field Detail

CREATOR

public static CREATOR = new Parcelable.Creator<AdBreak>() { @Override public AdBreak createFromParcel(@NonNull final Parcel source) { return new AdBreak(source); } @Override public AdBreak[] newArray(final int size) { return new AdBreak[size]; } }