> Documentation index: https://developer.android.com/reference/llms.txt

# HlsInterstitialsAdsLoader.AdsResumptionState

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

*** ** * ** ***


```
public class HlsInterstitialsAdsLoader.AdsResumptionState
```

<br />

*** ** * ** ***

The state of the given ads ID to resume playback at the given `AdPlaybackState`.

This state object can be bundled and unbundled while preserving an ` ads ID` of type `String`.

## Summary

| ### Public fields |
|---|---|
| `final String` | `adsId` The ads ID |

| ### Public constructors |
|---|
| `AdsResumptionState(String adsId, AdPlaybackState adPlaybackState)` Creates a new instance. |

| ### Public methods |
|---|---|
| `boolean` | `equals(@Nullable Object o)` |
| `static HlsInterstitialsAdsLoader.AdsResumptionState` | `fromBundle(Bundle bundle)` |
| `int` | `hashCode()` |
| `Bundle` | `toBundle()` |

## Public fields

### adsId

```
public final String adsId
```

The ads ID

## Public constructors

### AdsResumptionState

```
public AdsResumptionState(String adsId, AdPlaybackState adPlaybackState)
```

Creates a new instance.

| Parameters |
|---|---|
| `String adsId` | The ads ID of the playback state. |
| `AdPlaybackState adPlaybackState` | The `AdPlaybackState` with the given `adsId`. |

| Throws |
|---|---|
| `java.lang.IllegalArgumentException` | Thrown if the passed in adsId is not equal to `adsId`. |

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### fromBundle

```
public static HlsInterstitialsAdsLoader.AdsResumptionState fromBundle(Bundle bundle)
```

### hashCode

```
public int hashCode()
```

### toBundle

```
public Bundle toBundle()
```