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(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)
Properties
Link copied to clipboard
The AdBreakInfo instance that this Ad belongs to.
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
The AdVASTProperties of this Ad.
Link copied to clipboard
The duration of the ad (in milliseconds), or TIME_VALUE_UNKNOWN if not available.
Link copied to clipboard
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 skip offset of the Ad (in milliseconds), or TIME_VALUE_UNKNOWN if not available.