IMADaiSessionConfig

sealed class IMADaiSessionConfig

Sealed class representing the session configuration strategy for IMA DAI playback.

Use PerSession when a fresh AdsLoaderManager should be created (or optionally supplied) for each individual playback session.

Use Reuse when an existing AdsLoaderManager singleton should be reused across sessions for improved stream start-up performance, attaching ad rendering to the provided Reuse.rootContainerView.

Inheritors

Types

Link copied to clipboard
data class PerSession(val adsLoaderManager: AdsLoaderManager? = null) : IMADaiSessionConfig

Configuration that creates a new AdsLoaderManager for every playback session.

Link copied to clipboard
data class Reuse(val rootContainerView: View) : IMADaiSessionConfig

Configuration that reuses the active com.google.ads.interactivemedia.v3.api.AdsLoader singleton across playback sessions for improved stream start-up performance., which can significantly reduce stream start-up latency by avoiding repeated IMA SDK initialisation.