Class Creative

com.yandex.mobile.ads.video.models.ad

java.lang.Object ⇽ Creative

public class Creative implements Trackable

All Implemented Interfaces:
Trackable

This class contains information about the Creative object (the ID, video duration, list of MediaFile objects, and other parameters).

Constructors

Creative(final Parcel in)

Methods

int describeContents()
boolean equals(final Object o)
String getClickThroughUrl()

Returns the URL that the user goes to when clicking the video.

int getDurationMillis()

Returns the duration of the video in milliseconds.

List< Icon > getIcons()

Returns a list of Icon objects related to the creative.

String getId()

Returns the ID of the creative.

List< MediaFile > getMediaFiles()

Returns a list of MediaFile class objects related to the creative.

Map< String, List< String > > getTrackingEvents()

Returns a map containing keys with event types and the values of tracked URLs.

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

Fields

final Creator< Creative > CREATOR

Constructor Detail

Creative

public Creative (final Parcel in)

Method Detail

describeContents

public int describeContents ()

equals

public boolean equals (final Object o)

getClickThroughUrl

public String getClickThroughUrl ()

Returns the URL that the user goes to when clicking the video.

Returns:

The URL that the user goes to when clicking the video.

getDurationMillis

public int getDurationMillis ()

Returns the duration of the video in milliseconds.

Returns:

The duration of the video in milliseconds.

getIcons

public List< Icon > getIcons ()

Returns a list of Icon objects related to the creative.

Returns:

List of icons related to the creative.

getId

public String getId ()

Returns the ID of the creative.

Returns:

ID of the creative.

getMediaFiles

public List< MediaFile > getMediaFiles ()

Returns a list of MediaFile class objects related to the creative.

Returns:

A list of MediaFile class objects related to the creative.

getTrackingEvents

public Map< String, List< String > > getTrackingEvents ()

Returns a map containing keys with event types and the values of tracked URLs.

Returns:

A map containing keys with event types and the values of tracked URLs.

hashCode

public int hashCode ()

writeToParcel

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

Field Detail

CREATOR

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