# HlsInterstitialsAdsLoader.AdsResumptionState

# HlsInterstitialsAdsLoader.AdsResumptionState

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.AdsResumptionState)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState "View this page in Java")

<br />

```
class HlsInterstitialsAdsLoader.AdsResumptionState
```

<br />

*** ** * ** ***

The state of the given ads ID to resume playback at the given[AdPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState).

This state object can be bundled and unbundled while preserving an[ads ID](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#adsId())of type[String](https://developer.android.com/reference/java/lang/String.html).

## Summary

|                                                                                                                                                                                                                             ### Public constructors                                                                                                                                                                                                                              |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AdsResumptionState](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState#AdsResumptionState(java.lang.String,androidx.media3.common.AdPlaybackState))`(adsId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!, adPlaybackState: `[AdPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState)`!)` Creates a new instance. |

|                                                                                    ### Public functions                                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                        | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`            |
| `java-static `[HlsInterstitialsAdsLoader.AdsResumptionState](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState)`!` | [fromBundle](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState#fromBundle(android.os.Bundle))`(bundle: `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)`!)` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState#hashCode())`()`                                                                                                         |
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html)`!`                                                                                                                | [toBundle](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState#toBundle())`()`                                                                                                         |

|                                ### Public properties                                 |
|--------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!` | [adsId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/HlsInterstitialsAdsLoader.AdsResumptionState#adsId()) The ads ID |

## Public constructors

### AdsResumptionState

```
AdsResumptionState(adsId: String!, adPlaybackState: AdPlaybackState!)
```

Creates a new instance.  

|                                                           Parameters                                                           |
|--------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| `adsId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!`                                  | The ads ID of the playback state.                                                                                                 |
| `adPlaybackState: `[AdPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState)`!` | The[AdPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState)with the given`adsId`. |

|                                                        Throws                                                         |
|-----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException.html) | Thrown if the passed in adsId is not equal to[adsId](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState#adsId()). |

## Public functions

### equals

```
fun equals(o: Any?): Boolean
```  

### fromBundle

```
java-static fun fromBundle(bundle: Bundle!): HlsInterstitialsAdsLoader.AdsResumptionState!
```  

### hashCode

```
fun hashCode(): Int
```  

### toBundle

```
fun toBundle(): Bundle!
```  

## Public properties

### adsId

```
val adsId: String!
```

The ads ID