# AdaptationSet

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

*** ** * ** ***


```
@UnstableApi
class AdaptationSet
```

<br />

*** ** * ** ***

Represents a set of interchangeable encoded versions of a media content component.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#ID_UNSET() = -1` Value of `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#id()` indicating no value is set.= |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#AdaptationSet(long,int,java.util.List<androidx.media3.exoplayer.dash.manifest.Representation>,java.util.List<androidx.media3.exoplayer.dash.manifest.Descriptor>,java.util.List<androidx.media3.exoplayer.dash.manifest.Descriptor>,java.util.List<androidx.media3.exoplayer.dash.manifest.Descriptor>,com.google.common.collect.ImmutableList<androidx.media3.exoplayer.dash.manifest.ProducerReferenceTime>)( id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, @https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, representations: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Representation!>!, accessibilityDescriptors: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!, essentialProperties: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!, supplementalProperties: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!, producerReferenceTimes: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime!>! )` |

| ### Public properties |
|---|---|
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#accessibilityDescriptors()` Accessibility descriptors in the adaptation set. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#essentialProperties()` Essential properties in the adaptation set. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#id()` A non-negative identifier for the adaptation set that's unique in the scope of its containing period, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#ID_UNSET()` if not specified. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#producerReferenceTimes()` `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime` instances in the adaptation set. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Representation!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#representations()` `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Representation`s in the adaptation set. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#supplementalProperties()` Supplemental properties in the adaptation set. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#type()` The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType` of the adaptation set. |

## Constants

### ID_UNSET

```
const val ID_UNSET = -1: Long
```

Value of `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#id()` indicating no value is set.=

## Public constructors

### AdaptationSet

```
AdaptationSet(
    id: Long,
    @C.TrackType type: Int,
    representations: (Mutable)List<Representation!>!,
    accessibilityDescriptors: (Mutable)List<Descriptor!>!,
    essentialProperties: (Mutable)List<Descriptor!>!,
    supplementalProperties: (Mutable)List<Descriptor!>!,
    producerReferenceTimes: ImmutableList<ProducerReferenceTime!>!
)
```

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | A non-negative identifier for the adaptation set that's unique in the scope of its containing period, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#ID_UNSET()` if not specified. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType` of the adaptation set. |
| `representations: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Representation!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Representation`s in the adaptation set. |
| `accessibilityDescriptors: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!` | Accessibility descriptors in the adaptation set. |
| `essentialProperties: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!` | Essential properties in the adaptation set. |
| `supplementalProperties: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Descriptor!>!` | Supplemental properties in the adaptation set. |
| `producerReferenceTimes: https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime` instances in the adaptation set. |

## Public properties

### accessibilityDescriptors

```
val accessibilityDescriptors: (Mutable)List<Descriptor!>!
```

Accessibility descriptors in the adaptation set.

### essentialProperties

```
val essentialProperties: (Mutable)List<Descriptor!>!
```

Essential properties in the adaptation set.

### id

```
val id: Long
```

A non-negative identifier for the adaptation set that's unique in the scope of its containing period, or `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/AdaptationSet#ID_UNSET()` if not specified.

### producerReferenceTimes

```
val producerReferenceTimes: ImmutableList<ProducerReferenceTime!>!
```

`https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/ProducerReferenceTime` instances in the adaptation set.

### representations

```
val representations: (Mutable)List<Representation!>!
```

`https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/dash/manifest/Representation`s in the adaptation set.

### supplementalProperties

```
val supplementalProperties: (Mutable)List<Descriptor!>!
```

Supplemental properties in the adaptation set.

### type

```
@C.TrackType
val type: Int
```

The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType` of the adaptation set.