LinearAd

com.bitmovin.player.api.advertising

LinearAd

interface LinearAd : Ad

Defines a linear ad which requires the playback of the content to stop

Inheritors

Properties

NameSummary
clickThroughUrlabstract val clickThroughUrl: String?
The url the user should be redirected to when clicking the ad.
dataabstract val data: AdData?
Holds various additional AdData.
durationabstract val duration: Double
The duration of the ad.
extensionsopen val extensions: List<VastAdExtension>
VAST Extension nodes for the ad.
heightabstract val height: Int
The height of the ad.
idabstract val id: String?
Identifier for the ad. This might be autogenerated.
isLinearopen override val isLinear: Boolean
Determines whether an ad is linear, i.e. playback of main content needs to be paused for the ad.
mediaFileUrlabstract val mediaFileUrl: String?
The corresponding media file url for the ad.
skippableAfterabstract val skippableAfter: Double?
Time in seconds, after which the ad is skippable. The ad is not skippable if this property is not set.
uiConfigabstract val uiConfig: LinearAdUiConfig?
Holds relevant information for displaying the ad.
widthabstract val width: Int
The width of the ad.

Functions

NameSummary
clickThroughUrlOpenedabstract fun clickThroughUrlOpened()
Callback function to track the opening of the clickThroughUrl.
collapsedopen fun collapsed()
Callback function to track the ad collapsed state.
expandedopen fun expanded()
Callback function to track the ad expanded state.