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

# TrackSelectorResult

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

*** ** * ** ***


```
@UnstableApi
class TrackSelectorResult
```

<br />

*** ** * ** ***

The result of a `TrackSelector` operation.

## Summary

| ### Public constructors |
|---|
| `[TrackSelectorResult](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/TrackSelectorResult#TrackSelectorResult(androidx.media3.exoplayer.RendererConfiguration[],androidx.media3.exoplayer.trackselection.ExoTrackSelection[],java.lang.Object))( rendererConfigurations: Array<RendererConfiguration?>?, selections: Array<ExoTrackSelection?>?, info: Any? )` **This function is deprecated.** Use `TrackSelectorResult`. <br /> |
| `TrackSelectorResult( rendererConfigurations: Array<RendererConfiguration?>?, selections: Array<ExoTrackSelection?>?, tracks: Tracks!, info: Any? )` |

| ### Public functions |
|---|---|
| `Boolean` | `isEquivalent(other: TrackSelectorResult?)` Returns whether this result is equivalent to `other` for all renderers. |
| `Boolean` | `isEquivalent(other: TrackSelectorResult?, index: Int)` Returns whether this result is equivalent to `other` for the renderer at the given index. |
| `Boolean` | `isRendererEnabled(index: Int)` Returns whether the renderer at the specified index is enabled. |

| ### Public properties |
|---|---|
| `Any?` | `info` An opaque object that will be returned to `onSelectionActivated` should the selections be activated. |
| `Int` | `length` The number of selections in the result. |
| `Array<RendererConfiguration?>?` | `rendererConfigurations` A `RendererConfiguration` for each renderer. |
| `Array<ExoTrackSelection?>?` | `selections` A `ExoTrackSelection` array containing the track selection for each renderer. |
| `Tracks!` | `tracks` Describe the tracks and which one were selected. |

## Public constructors

### TrackSelectorResult

```
[TrackSelectorResult](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/TrackSelectorResult#TrackSelectorResult(androidx.media3.exoplayer.RendererConfiguration[],androidx.media3.exoplayer.trackselection.ExoTrackSelection[],java.lang.Object))(
    rendererConfigurations: Array<RendererConfiguration?>?,
    selections: Array<ExoTrackSelection?>?,
    info: Any?
)
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `TrackSelectorResult`.

| Parameters |
|---|---|
| `rendererConfigurations: Array<RendererConfiguration?>?` | A `RendererConfiguration` for each renderer. A null entry indicates the corresponding renderer should be disabled. |
| `selections: Array<ExoTrackSelection?>?` | A `ExoTrackSelection` array containing the selection for each renderer. |
| `info: Any?` | An opaque object that will be returned to `onSelectionActivated` should the selection be activated. May be `null`. |

### TrackSelectorResult

```
TrackSelectorResult(
    rendererConfigurations: Array<RendererConfiguration?>?,
    selections: Array<ExoTrackSelection?>?,
    tracks: Tracks!,
    info: Any?
)
```

| Parameters |
|---|---|
| `rendererConfigurations: Array<RendererConfiguration?>?` | A `RendererConfiguration` for each renderer. A null entry indicates the corresponding renderer should be disabled. |
| `selections: Array<ExoTrackSelection?>?` | A `ExoTrackSelection` array containing the selection for each renderer. If the renderer is disabled with a null `RendererConfiguration`, then it must have a null selection too. It can also have a null selection if it has a ` track type` of `TRACK_TYPE_NONE`. |
| `tracks: Tracks!` | Description of the available tracks and which one were selected. |
| `info: Any?` | An opaque object that will be returned to `onSelectionActivated` should the selection be activated. May be `null`. |

## Public functions

### isEquivalent

```
fun isEquivalent(other: TrackSelectorResult?): Boolean
```

Returns whether this result is equivalent to `other` for all renderers.

| Parameters |
|---|---|
| `other: TrackSelectorResult?` | The other `TrackSelectorResult`. May be null, in which case `false` will be returned. |

| Returns |
|---|---|
| `Boolean` | Whether this result is equivalent to `other` for all renderers. |

### isEquivalent

```
fun isEquivalent(other: TrackSelectorResult?, index: Int): Boolean
```

Returns whether this result is equivalent to `other` for the renderer at the given index. The results are equivalent if they have equal track selections and configurations for the renderer.

| Parameters |
|---|---|
| `other: TrackSelectorResult?` | The other `TrackSelectorResult`. May be null, in which case `false` will be returned. |
| `index: Int` | The renderer index to check for equivalence. |

| Returns |
|---|---|
| `Boolean` | Whether this result is equivalent to `other` for the renderer at the specified index. |

### isRendererEnabled

```
fun isRendererEnabled(index: Int): Boolean
```

Returns whether the renderer at the specified index is enabled.

## Public properties

### info

```
val info: Any?
```

An opaque object that will be returned to `onSelectionActivated` should the selections be activated.

### length

```
val length: Int
```

The number of selections in the result. Greater than or equal to zero.

### rendererConfigurations

```
val rendererConfigurations: Array<RendererConfiguration?>?
```

A `RendererConfiguration` for each renderer. A null entry indicates the corresponding renderer should be disabled.

### selections

```
val selections: Array<ExoTrackSelection?>?
```

A `ExoTrackSelection` array containing the track selection for each renderer.

### tracks

```
val tracks: Tracks!
```

Describe the tracks and which one were selected.