IMAAdRenderingConfiguration

data class IMAAdRenderingConfiguration(val playAdsAfterTimeSeconds: Double? = null, val focusSkipButtonWhenAvailable: Boolean? = null, val loadVideoTimeoutMs: Int? = null)

Configuration options for IMA ad rendering settings.

This class wraps the various options available in IMA SDK's AdsRenderingSettings to provide a type-safe, SDK-agnostic way to configure ad rendering behavior.

Constructors

Link copied to clipboard
constructor(playAdsAfterTimeSeconds: Double? = null, focusSkipButtonWhenAvailable: Boolean? = null, loadVideoTimeoutMs: Int? = null)

Properties

Link copied to clipboard

If true, the skip button will automatically receive focus when it becomes available. This is useful for TV/controller-based navigation. Default is null (uses IMA SDK default behavior).

Link copied to clipboard
val loadVideoTimeoutMs: Int? = null

The maximum amount of time (in milliseconds) to wait for the ad video to load before reporting an error. Default is null (uses IMA SDK default behavior).

Link copied to clipboard

If specified, the SDK will skip ads scheduled to play before this time (in seconds). This setting is useful when resuming content playback from a saved position and you want to skip ads that were already watched or that would have been played before the resume point.