Package-level declarations

Types

Link copied to clipboard
data class AdBreakInfo(val adBreakID: String, val contentTimePosition: AdContentTimePosition, val adSequencePosition: Int, val adBreakStartTimeOffsetMs: Double = TIME_VALUE_UNKNOWN, val remainingTimeMs: Double = TIME_VALUE_UNKNOWN, val durationMs: Double = TIME_VALUE_UNKNOWN, val totalAds: Int, val adBreakIndex: Int = VALUE_UNKNOWN) : Parcelable

Represents information about an Ad, and the Ad Break it is composed in.

Link copied to clipboard

A Player that is composed of Main Content Playback and Ad Management functionality exposed via AdsManager.

Link copied to clipboard

Represents an Ad position in a Video.

Link copied to clipboard
interface AdControllable

Represents AdComposedPlayer protocol to support ad playback's advanced scenarios.

Link copied to clipboard
interface AdEventListener

Ad Player interface providing the client with the notification about the ad related events.

Link copied to clipboard
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.

Link copied to clipboard

Type of Ad insertion

Link copied to clipboard
data class AdOverlayUIScope(val view: View, val uiScope: Int)

Provides the UI scope for an overlay view shown on top of an ad view group.

Link copied to clipboard

Policy rules for Ads handling.

Link copied to clipboard
data class AdProgressInfo(val adBreakDurationMs: Long, val numberOfAds: Int, val currentAdPosition: Int, val currentAdDurationMs: Long, val currentAdProgressMs: Long)

Represents information about the progress within a particular Ad Break.

Link copied to clipboard
interface AdRequest

Represents base Ads request.

Link copied to clipboard
interface AdsManager

Manages some aspects of ad playback.

Link copied to clipboard

Represents Ad state tracking events.

Link copied to clipboard
data class AdVASTProperties(val adSystem: String? = null, val adTitle: String? = null, val adServingId: String? = null, val adId: String? = null, val creativeId: String? = null, val category: String? = null, val description: String? = null, val advertiser: String? = null, val pricing: String? = null, val survey: String? = null, val expires: String? = null, val industryIcons: List<IndustryIcon>? = emptyList(), val companionAds: List<CompanionAd>? = emptyList(), val extensions: Extensions? = null)

Represents key VAST properties to be shared with all registered analytics providers.

Link copied to clipboard
data class CompanionAd(val width: Int? = 0, val height: Int? = 0, val resourceURI: String? = null, val altText: String? = null, val clickThroughURL: String? = null, val clickTrackingURL: String? = null, val apiFramework: String? = null)

Representation of VAST document's element.

Link copied to clipboard
data class ContentTimeline(val timeOffsetBeforeContentStartMs: Long = DEFAULT_LONG_VAL, val timeOffsetInContentMs: Long = DEFAULT_LONG_VAL, val timeOffsetAfterContentEndMs: Long = DEFAULT_LONG_VAL)

Represents main content timeline offsets for a VOD stream with ads.

Link copied to clipboard
data class Extensions(val clickFallbackImages: List<IconClickFallbackImage> = emptyList())

Represents the custom VAST extensions properties.

Link copied to clipboard
data class IconClickFallbackImage(val width: String, val height: String, val altText: String? = null, val imageURL: String? = null, val program: String? = null)

In cases where the icon representing the cause for ad showing can not display the "Ad Settings" page, such as when the platform does not support a browser, shows users a fallback image that contains the same disclosure information as the "Ad Settings" page. When an icon click occurs, the ad must pause and the image must be rendered above the video. The player must provide a means for the user to close the dialogue, for example by pressing the back button. The image must not be obstructed and should not be downloaded unless a click-action occurs. obstructed and should not be downloaded unless a click-action occurs.

Link copied to clipboard

Represents the Ad UI element visibility preference that determines if a given element should be visible or not during Ad playback.

Link copied to clipboard
data class IndustryIcon(val program: String? = null, val width: String? = null, val height: String? = null, val xPosition: String? = null, val yPosition: String? = null, val offset: String? = null, val duration: String? = null, val apiFramework: String? = null, val altText: String? = null, val imageURL: String? = null, val clickThroughURL: String, val fallbackImages: List<IconClickFallbackImage> = emptyList())

Represents VAST response metadata related to WTA (Why This Ad?) privacy disclosures. These disclosures are returned inside the IndustryIcon element of the VAST response. WTA related attributes are part of the relevant tag and are used to render the Industry icon.

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val VALUE_UNKNOWN: Int