AdInfo

data class AdInfo(val adID: String, val sequence: Int, val adStartTimeOffsetMs: Double = TIME_VALUE_UNKNOWN, val durationMs: Double = TIME_VALUE_UNKNOWN, val remainingTimeMs: Double = TIME_VALUE_UNKNOWN, val isSkippable: Boolean = false, val skipOffsetMs: Double? = TIME_VALUE_UNKNOWN, val isFiller: Boolean = false, val adBreakInfo: AdBreakInfo? = null, val adVastProperties: AdVASTProperties? = null) : Parcelable

Represents information about a particular Ad in and Ad Break.

Constructors

Link copied to clipboard
constructor(parcel: Parcel)
constructor(adID: String, sequence: Int, adStartTimeOffsetMs: Double = TIME_VALUE_UNKNOWN, durationMs: Double = TIME_VALUE_UNKNOWN, remainingTimeMs: Double = TIME_VALUE_UNKNOWN, isSkippable: Boolean = false, skipOffsetMs: Double? = TIME_VALUE_UNKNOWN, isFiller: Boolean = false, adBreakInfo: AdBreakInfo? = null, adVastProperties: AdVASTProperties? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard

The AdBreakInfo instance that this Ad belongs to.

Link copied to clipboard

The ad unique identifier.

Link copied to clipboard

the content time offset at which the current ad was scheduled (in milliseconds), or TIME_VALUE_UNKNOWN if not available.

Link copied to clipboard
Link copied to clipboard

The duration of the ad (in milliseconds), or TIME_VALUE_UNKNOWN if not available.

Link copied to clipboard
val isFiller: Boolean = false

true if this ad represents filler content, false otherwise.

Link copied to clipboard
val isSkippable: Boolean = false

Indicates whether the ad can be skipped by the user.

Link copied to clipboard

The natural playback time remaining for the ad (in milliseconds), or TIME_VALUE_UNKNOWN if not available.

Link copied to clipboard

The sequence position in ad break.

Link copied to clipboard

The skip offset of the Ad (in milliseconds), or TIME_VALUE_UNKNOWN if not available.

Functions

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open override fun writeToParcel(parcel: Parcel, flags: Int)