FileItem

data class FileItem(val url: String, val name: String, val options: AdResponse.FileItem.FileOptions? = null) : Parcelable

A portion of the data received from the ad server and decoded by the SDK that is associated with additional advertising content.

It is most often used in cases where advertising includes not only images but also other advertising resources, such as HTML code.

Constructors

Link copied to clipboard
constructor(url: String, name: String, options: AdResponse.FileItem.FileOptions? = null)

Creates an FileItem instance. You can use this constructor for testing. Normally you do not need to use it.

Types

Link copied to clipboard
class FileOptions(val clickUrl: String, val sortOrder: Int? = null) : Parcelable

A portion of the data received from the ad server and decoded by the SDK that is associated with additional options related to the file.

Properties

Link copied to clipboard

The name of the file.

Link copied to clipboard

Additional options related to the file.

Link copied to clipboard
val url: String

An URL of the file.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)