Class Block

com.yandex.mobile.ads.video.models.blocksinfo

java.lang.Object ⇽ Block

public class Block

This class contains information about a VAST ad block (the type, ID, maximum duration, and other parameters).

Nested Classes

class Block.Type

Methods

int describeContents()
boolean equals(final Object o)
int getDuration()

Returns the maximum duration of an ad block, in seconds.

String getId()

Returns the ad block ID.

int getPositionsCount()

Returns the maximum number of positions in an ad block.

int getStartTime()

Returns the start time of an ad block relative to the start of a video in seconds.

Type getType()

Returns the type of an ad block.

int hashCode()
void writeToParcel(final Parcel dest, final int flags)

Fields

final Parcelable.Creator< Block > CREATOR

Method Detail

describeContents

public int describeContents ()

equals

public boolean equals (final Object o)

getDuration

public int getDuration ()

Returns the maximum duration of an ad block, in seconds.

Returns:

The maximum duration of an ad block, in seconds.

getId

public String getId ()

Returns the ad block ID.

Returns:

Ad block ID.

getPositionsCount

public int getPositionsCount ()

Returns the maximum number of positions in an ad block.

Returns:

Maximum number of positions in an ad block.

getStartTime

public int getStartTime ()

Returns the start time of an ad block relative to the start of a video in seconds.

Returns:

The start time of an ad block relative to the start of a video in seconds.

getType

public Type getType ()

Returns the type of an ad block.

Returns:

The type of an ad block.

hashCode

public int hashCode ()

writeToParcel

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

Field Detail

CREATOR

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