# HlsInterstitialsAdsLoader

Artifact: [androidx.media3:media3-exoplayer-hls](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.java+class:androidx.media3.exoplayer.hls.HlsInterstitialsAdsLoader)

*** ** * ** ***


```
@UnstableApi
class HlsInterstitialsAdsLoader : AdsLoader
```

<br />

*** ** * ** ***

An `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader` that reads interstitials from the HLS playlist, adds them to the `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState` and passes the ad playback state to `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener#onAdPlaybackState(androidx.media3.common.AdPlaybackState)`.

An ads ID must be unique within the playlist of ExoPlayer. If this is the case, a single `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader` instance can be passed to multiple `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`. These ad media source can be added to the same playlist as far as each of the sources have a different ads IDs.

This class is confined to the Looper on which it was created. All public methods must be called from the thread associated with this Looper.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsMediaSourceFactory : https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory` A `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory` to create a media source to play HLS streams with interstitials. |
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState` The state of the given ads ID to resume playback at the given `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState`. |
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Asset` An asset with a URI and a duration. |
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AssetList` Holds a list of `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Asset`. |
| `interface https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Listener` A listener to be notified of events emitted by the ads loader. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#HlsInterstitialsAdsLoader(android.content.Context)(context: https://developer.android.com/reference/android/content/Context.html!)` Creates an instance with a `https://developer.android.com/reference/kotlin/androidx/media3/datasource/DefaultDataSource.Factory` to read HLS X-ASSET-LIST JSON objects. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#HlsInterstitialsAdsLoader(androidx.media3.datasource.DataSource.Factory)(dataSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource.Factory!)` Creates an instance. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#addAdResumptionState(androidx.media3.exoplayer.hls.HlsInterstitialsAdsLoader.AdsResumptionState)( adsResumptionState: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState! )` Adds the given `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState` to resume playback of the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource` with `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource#getAdsId()` at the provided ad playback state. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#addAdResumptionState(java.lang.Object,androidx.media3.common.AdPlaybackState)(adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, adPlaybackState: https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState!)` Adds the given `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState` to resume playback of the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource` with `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource#getAdsId()` at the provided ad playback state. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#addListener(androidx.media3.exoplayer.hls.HlsInterstitialsAdsLoader.Listener)(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Listener!)` Adds a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Listener`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#clearAllAdResumptionStates()()` Clears all ad resumptions states. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#getAdsResumptionStates()()` Returns the resumption states of the currently active `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#handleContentTimelineChanged(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.common.Timeline)( adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!, timeline: https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline! )` Notifies the ads loader when the content source has changed its timeline. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#handlePrepareComplete(androidx.media3.exoplayer.source.ads.AdsMediaSource,int,int)( adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!, adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, adIndexInAdGroup: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Notifies the ads loader that preparation of an ad media period is complete. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#handlePrepareError(androidx.media3.exoplayer.source.ads.AdsMediaSource,int,int,java.io.IOException)( adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!, adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, adIndexInAdGroup: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, exception: https://developer.android.com/reference/java/io/IOException.html! )` Notifies the ads loader that the player was not able to prepare media for a given ad. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#release()()` Releases the loader. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#removeAdResumptionState(java.lang.Object)(adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` Removes the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState` for the given ads ID, or null if there is no active ad playback state for the given ads ID. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#removeListener(androidx.media3.exoplayer.hls.HlsInterstitialsAdsLoader.Listener)(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Listener!)` Removes a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Listener`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setPlayer(androidx.media3.common.Player)(player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?)` Sets the player that will play the loaded ads. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setSupportedContentTypes(int...)(@https://developer.android.com/reference/kotlin/androidx/media3/common/C.ContentType contentTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!)` Sets the supported content types for ad media. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAssetListReset(java.lang.Object,int)(adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Resets the ad group corresponding to the given ad group to make the asset list available for scheduling for resolution again. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAssetListReset(java.lang.Object,java.lang.String)(adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, interstitialsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Resets the ad group corresponding to the given interstitial ID to make the asset list available for scheduling for resolution again. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAssetListResetAsync(java.lang.Object,int)(adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Asynchronously resets an ad group to make the asset list available for resolution again. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAssetListResetAsync(java.lang.Object,java.lang.String)(adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, interstitialsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Asynchronously resets an ad group corresponding to the given interstitial ID to make the asset list available for resolution again. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAvailableAdGroup(int)(adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the given ad group to `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_AVAILABLE()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAvailableAdMediaItem(int,int,androidx.media3.common.MediaItem)( adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, adIndexInAdGroup: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem? )` Sets the given ad to `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_AVAILABLE()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithSkippedAd(int,int)(adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, adIndexInAdGroup: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the given ad to `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_SKIPPED()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithSkippedAdGroup(int)(adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the given ad group to `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_SKIPPED()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#skipCurrentAd()()` Skips the ad currently being played. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#skipCurrentAdGroup()()` Skips the ad group of the ad currently being played. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#start(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.datasource.DataSpec,java.lang.Object,androidx.media3.common.AdViewProvider,androidx.media3.exoplayer.source.ads.AdsLoader.EventListener)( adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!, adTagDataSpec: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSpec!, adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!, adViewProvider: https://developer.android.com/reference/kotlin/androidx/media3/common/AdViewProvider!, eventListener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener! )` Starts using the ads loader for playback. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#stop(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.exoplayer.source.ads.AdsLoader.EventListener)( adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!, eventListener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener! )` Stops using the ads loader for playback and deregisters the event listener. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#isReleased()` |

## Public constructors

### HlsInterstitialsAdsLoader

```
HlsInterstitialsAdsLoader(context: Context!)
```

Creates an instance with a `https://developer.android.com/reference/kotlin/androidx/media3/datasource/DefaultDataSource.Factory` to read HLS X-ASSET-LIST JSON objects.

| Parameters |
|---|---|
| `context: https://developer.android.com/reference/android/content/Context.html!` | The context. |

### HlsInterstitialsAdsLoader

```
HlsInterstitialsAdsLoader(dataSourceFactory: DataSource.Factory!)
```

Creates an instance.

| Parameters |
|---|---|
| `dataSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSource.Factory!` | The data source factory to read HLS X-ASSET-LIST JSON objects. |

## Public functions

### addAdResumptionState

```
fun addAdResumptionState(
    adsResumptionState: HlsInterstitialsAdsLoader.AdsResumptionState!
): Unit
```

Adds the given `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState` to resume playback of the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource` with `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource#getAdsId()` at the provided ad playback state.

If added while the given ads ID is active, the resumption state is ignored. The resumption state for a given ads ID must be added before `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#start(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.datasource.DataSpec,java.lang.Object,androidx.media3.common.AdViewProvider,androidx.media3.exoplayer.source.ads.AdsLoader.EventListener)` or after `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#stop(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.exoplayer.source.ads.AdsLoader.EventListener)` is called for that ads ID.

| Parameters |
|---|---|
| `adsResumptionState: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState!` | The state to resume with. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | Thrown if the ad playback state `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#endsWithLivePostrollPlaceHolder()`. |

### addAdResumptionState

```
fun addAdResumptionState(adsId: Any!, adPlaybackState: AdPlaybackState!): Unit
```

Adds the given `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState` to resume playback of the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource` with `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource#getAdsId()` at the provided ad playback state.

If added while the given ads ID is active, the resumption state is ignored. The resumption state for a given ads ID must be added before `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#start(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.datasource.DataSpec,java.lang.Object,androidx.media3.common.AdViewProvider,androidx.media3.exoplayer.source.ads.AdsLoader.EventListener)` or after `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#stop(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.exoplayer.source.ads.AdsLoader.EventListener)` is called for that ads ID.

| Parameters |
|---|---|
| `adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | The ads ID identifying the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource` to resume with the given state. |
| `adPlaybackState: https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState!` | The state to resume with. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | Thrown if the ad playback state `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#endsWithLivePostrollPlaceHolder()`. |

### addListener

```
fun addListener(listener: HlsInterstitialsAdsLoader.Listener!): Unit
```

Adds a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Listener`.

### clearAllAdResumptionStates

```
fun clearAllAdResumptionStates(): Unit
```

Clears all ad resumptions states.

### getAdsResumptionStates

```
fun getAdsResumptionStates(): ImmutableList<HlsInterstitialsAdsLoader.AdsResumptionState!>!
```

Returns the resumption states of the currently active `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`.

Call this method to get the resumption states before releasing the player and `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#addAdResumptionState(androidx.media3.exoplayer.hls.HlsInterstitialsAdsLoader.AdsResumptionState)`.

Live streams and streams with an `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource#getAdsId()` that are not of type string are ignored and are not included in the returned list of ad resumption state.

See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Listener#onStop(androidx.media3.common.MediaItem,java.lang.Object,androidx.media3.common.AdPlaybackState)` and `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#addAdResumptionState(java.lang.Object,androidx.media3.common.AdPlaybackState)` also.

### handleContentTimelineChanged

```
fun handleContentTimelineChanged(
    adsMediaSource: AdsMediaSource!,
    timeline: Timeline!
): Boolean
```

Notifies the ads loader when the content source has changed its timeline. Called on the main thread by `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`.

The default implementation returns false which makes the content timeline immediately being reported to the player.

When overriding this method for the purpose of reading ad data from the timeline to populate the `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState` with, false needs to be passed to the constructor of `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource#AdsMediaSource(androidx.media3.exoplayer.source.MediaSource,androidx.media3.datasource.DataSpec,java.lang.Object,androidx.media3.exoplayer.source.MediaSource.Factory,androidx.media3.exoplayer.source.ads.AdsLoader,androidx.media3.common.AdViewProvider,boolean,boolean)` to indicate that the content source needs to be prepared upfront. This way an ads loader can defer calling `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener#onAdPlaybackState(androidx.media3.common.AdPlaybackState)` until the ad data from the timeline is available and populate the initial ad playback state with that data before publishing.

For live streams, this method is called additional times when the content source reports an advancing `https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline` with new available media and/or new ad data in the manifest. If in such a case, the ads loader as a result calls `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener#onAdPlaybackState(androidx.media3.common.AdPlaybackState)`, true must be returned. This prevents the timeline being reported with stale ad data. Conversely, when the ad playback state is not passed into `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener#onAdPlaybackState(androidx.media3.common.AdPlaybackState)`, false must be returned to not drop a timeline update that needs to be published to the player.

Generally, if the timeline is not required to populate the ad playback state, `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader#start(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.datasource.DataSpec,java.lang.Object,androidx.media3.common.AdViewProvider,androidx.media3.exoplayer.source.ads.AdsLoader.EventListener)` should be used to initiate loading ad data and publish the first ad playback state as early as possible. This method can still be overridden for informational or other purpose. In this case, false is returned here and the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource` is used with lazy preparation enabled.

| Parameters |
|---|---|
| `adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!` | The ads media source for which the content timeline changed. |
| `timeline: https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline!` | The timeline of the content source. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener#onAdPlaybackState(androidx.media3.common.AdPlaybackState)` is or will be called, false otherwise. |

### handlePrepareComplete

```
fun handlePrepareComplete(
    adsMediaSource: AdsMediaSource!,
    adGroupIndex: Int,
    adIndexInAdGroup: Int
): Unit
```

Notifies the ads loader that preparation of an ad media period is complete. Called on the main thread by `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`.

| Parameters |
|---|---|
| `adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!` | The ads media source for which preparation of ad media completed. |
| `adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad group. |
| `adIndexInAdGroup: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad in the ad group. |

### handlePrepareError

```
fun handlePrepareError(
    adsMediaSource: AdsMediaSource!,
    adGroupIndex: Int,
    adIndexInAdGroup: Int,
    exception: IOException!
): Unit
```

Notifies the ads loader that the player was not able to prepare media for a given ad. Implementations should update the ad playback state as the specified ad has failed to load. Called on the main thread by `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`.

| Parameters |
|---|---|
| `adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!` | The ads media source for which preparation of ad media failed. |
| `adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad group. |
| `adIndexInAdGroup: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad in the ad group. |
| `exception: https://developer.android.com/reference/java/io/IOException.html!` | The preparation error. |

### release

```
fun release(): Unit
```

Releases the loader. Must be called by the application on the main thread when the instance is no longer needed.

### removeAdResumptionState

```
fun removeAdResumptionState(adsId: Any!): Boolean
```

Removes the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState` for the given ads ID, or null if there is no active ad playback state for the given ads ID.

| Parameters |
|---|---|
| `adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | The ads ID for which to remove the resumption state. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | The removed resumption state or null. |

### removeListener

```
fun removeListener(listener: HlsInterstitialsAdsLoader.Listener!): Unit
```

Removes a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.Listener`.

### setPlayer

```
fun setPlayer(player: Player?): Unit
```

Sets the player that will play the loaded ads.

This method must be called before the player is prepared with media using this ads loader.

This method must also be called on the main thread and only players which are accessed on the main thread are supported ( player.getApplicationLooper() == Looper.getMainLooper()).

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If an app is attempting to set a new player instance after `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#release()` was called or while `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource` started by the old player are still active, an `https://developer.android.com/reference/java/lang/IllegalStateException.html` is thrown. Release the old player first, or remove all ads media sources from it before setting another player instance. |

### setSupportedContentTypes

```
fun setSupportedContentTypes(@C.ContentType contentTypes: IntArray<Int>!): Unit
```

Sets the supported content types for ad media. Must be called before the first call to `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader#start(androidx.media3.exoplayer.source.ads.AdsMediaSource,androidx.media3.datasource.DataSpec,java.lang.Object,androidx.media3.common.AdViewProvider,androidx.media3.exoplayer.source.ads.AdsLoader.EventListener)`. Subsequent calls may be ignored. Called on the main thread by `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.ContentType contentTypes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!` | The supported content types for ad media. Each element must be one of `https://developer.android.com/reference/kotlin/androidx/media3/common/C#CONTENT_TYPE_DASH()`, `https://developer.android.com/reference/kotlin/androidx/media3/common/C#CONTENT_TYPE_HLS()`, `https://developer.android.com/reference/kotlin/androidx/media3/common/C#CONTENT_TYPE_SS()` and `https://developer.android.com/reference/kotlin/androidx/media3/common/C#CONTENT_TYPE_OTHER()`. |

### setWithAssetListReset

```
@CanIgnoreReturnValue
fun setWithAssetListReset(adsId: Any!, adGroupIndex: Int): Boolean
```

Resets the ad group corresponding to the given ad group to make the asset list available for scheduling for resolution again.

All ads previously contained in the group are removed and the ad group is reset to a single `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_UNAVAILABLE()` ad with the media item removed. When the asset list is resolved, the ad group is re-populated according to the asset list content.

If no ad playback state for the given ads ID is found or the ad group index points to an ad group that corresponds to an interstitials without an asset list URI, then calling this method is a no-op and returns false.

All ads in the ad group must be either in state `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_PLAYED()`, `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_SKIPPED()` or `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_ERROR()` or calling this method is a no-op and returns false.

| Parameters |
|---|---|
| `adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | The ads ID of the content source. |
| `adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The ad group index. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if an asset list has been made available for resolution, false means a no-op. |

### setWithAssetListReset

```
@CanIgnoreReturnValue
fun setWithAssetListReset(adsId: Any!, interstitialsId: String!): Boolean
```

Resets the ad group corresponding to the given interstitial ID to make the asset list available for scheduling for resolution again.

See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAssetListReset(java.lang.Object,int)` for more info.

| Parameters |
|---|---|
| `adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | The ads ID of the content source. |
| `interstitialsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The ID of the interstitial ID to be reset. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | true if an asset list has been made available for resolution, false means a no-op. |

### setWithAssetListResetAsync

```
@CanIgnoreReturnValue
fun setWithAssetListResetAsync(adsId: Any!, adGroupIndex: Int): ListenableFuture<Boolean!>!
```

Asynchronously resets an ad group to make the asset list available for resolution again.

The reset logic is posted as a new event to the looper of the calling thread. This ensures that the reset is executed after the current looper iteration completes and after other `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener` components (like the ad loader itself) have finished applying their changes to the `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState`.

For example, if an app wants to reactivate an interstitial immediately after it has finished playback, an asynchronous call ensures that the internal ad playback state update --- marking the ad as `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_PLAYED()` --- has been processed by the ad loader before this method validates that the ad group is in a resettable state.

See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAssetListReset(java.lang.Object,int)` for requirements and details on how the `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState` is modified.

| Parameters |
|---|---|
| `adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | The ads ID of the content source. |
| `adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The ad group index. |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>!` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` that completes with `true` if the asset list was made available for resolution, or `false` if the operation was a no-op. |

### setWithAssetListResetAsync

```
@CanIgnoreReturnValue
fun setWithAssetListResetAsync(adsId: Any!, interstitialsId: String!): ListenableFuture<Boolean!>!
```

Asynchronously resets an ad group corresponding to the given interstitial ID to make the asset list available for resolution again.

The reset logic is posted as a new event to the looper of the calling thread. This ensures that the reset is executed after the current looper iteration completes and after other `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener` components (like the ad loader itself) have finished applying their changes to the `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState`.

For example, if an app wants to reactivate an interstitial immediately after it has finished playback, an asynchronous call ensures that the internal ad playback state update --- marking the ad as `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_PLAYED()` --- has been processed by the ad loader before this method validates that the ad group is in a resettable state.

See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setWithAssetListReset(java.lang.Object,java.lang.String)` for requirements and details on how the `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState` is modified.

| Parameters |
|---|---|
| `adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | The ads ID of the content source. |
| `interstitialsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The ID of the interstitial ID to be reset. |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html!>!` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` that completes with `true` if the asset list was made available for resolution, or `false` if the operation was a no-op. |

### setWithAvailableAdGroup

```
fun setWithAvailableAdGroup(adGroupIndex: Int): Unit
```

Sets the given ad group to `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_AVAILABLE()`. Ads that are in state `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_UNAVAILABLE()` or `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_ERROR()` are left unchanged.

| Parameters |
|---|---|
| `adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad group in the ad playback state. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if there is no ad group available for the given index. |
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | if called when the player `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setPlayer(androidx.media3.common.Player)` or if any ad in the group doesn't have a media item for the ad stream assigned. |

### setWithAvailableAdMediaItem

```
fun setWithAvailableAdMediaItem(
    adGroupIndex: Int,
    adIndexInAdGroup: Int,
    mediaItem: MediaItem?
): Unit
```

Sets the given ad to `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_AVAILABLE()`.

| Parameters |
|---|---|
| `adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad group in the ad playback state. |
| `adIndexInAdGroup: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad in the ad group in the ad playback state. |
| `mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem?` | The optional media item. If not set the same ad media item is played again. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if there is no ad group or ad available for the given indices or if the provided `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` is not an HLS media item. |
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | if the media item that was passed in is null, and the given ad doesn't have a media item set already, or if called when the player `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setPlayer(androidx.media3.common.Player)`. |

### setWithSkippedAd

```
fun setWithSkippedAd(adGroupIndex: Int, adIndexInAdGroup: Int): Unit
```

Sets the given ad to `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_SKIPPED()`.

Ads that are already in state `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_PLAYED()`, `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_SKIPPED()` or `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_ERROR()` are left unchanged.

| Parameters |
|---|---|
| `adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad group in the ad playback state. |
| `adIndexInAdGroup: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad in the ad group in the ad playback state. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if there is no ad group or ad available for the given indices. |
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | if called when the player `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setPlayer(androidx.media3.common.Player)`. |

### setWithSkippedAdGroup

```
fun setWithSkippedAdGroup(adGroupIndex: Int): Unit
```

Sets the given ad group to `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_SKIPPED()`.

Ads that are already in state `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_PLAYED()`, `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_SKIPPED()` or `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#AD_STATE_ERROR()` are left unchanged.

| Parameters |
|---|---|
| `adGroupIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the ad group in the ad playback state. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if there is no ad group available for the given index. |
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | if called when the player `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader#setPlayer(androidx.media3.common.Player)`. |

### skipCurrentAd

```
fun skipCurrentAd(): Unit
```

Skips the ad currently being played.

Does nothing if no ad is playing or the ad is not managed by this ads loader.

### skipCurrentAdGroup

```
fun skipCurrentAdGroup(): Unit
```

Skips the ad group of the ad currently being played.

Does nothing if no ad is playing or the ad is not managed by this ads loader.

### start

```
fun start(
    adsMediaSource: AdsMediaSource!,
    adTagDataSpec: DataSpec!,
    adsId: Any!,
    adViewProvider: AdViewProvider!,
    eventListener: AdsLoader.EventListener!
): Unit
```

Starts using the ads loader for playback. Called on the main thread by `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`.

Requests the ads loader to start loading ad data from the provided `https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSpec`. Publishing an initial `https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState` to provided `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener#onAdPlaybackState(androidx.media3.common.AdPlaybackState)` is required to start playback. In the case of a pre roll, this ensures that the player doesn't briefly start playing content before ad data is available.

| Parameters |
|---|---|
| `adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!` | The ads media source requesting to start loading ads. |
| `adTagDataSpec: https://developer.android.com/reference/kotlin/androidx/media3/datasource/DataSpec!` | A data spec for the ad tag to load. |
| `adsId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!` | An opaque identifier for the ad playback state across start/stop calls. |
| `adViewProvider: https://developer.android.com/reference/kotlin/androidx/media3/common/AdViewProvider!` | Provider of views for the ad UI. |
| `eventListener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener!` | Listener for ads loader events. |

### stop

```
fun stop(
    adsMediaSource: AdsMediaSource!,
    eventListener: AdsLoader.EventListener!
): Unit
```

Stops using the ads loader for playback and deregisters the event listener. Called on the main thread by `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource`.

| Parameters |
|---|---|
| `adsMediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsMediaSource!` | The ads media source requesting to stop loading/playing ads. |
| `eventListener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ads/AdsLoader.EventListener!` | The ads media source's listener for ads loader events. |

## Public properties

### isReleased

```
val isReleased: Boolean
```