Back to Exoplayer

TrackSelectionArray (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/trackselection/TrackSelectionArray.html

latest3.4 KB
Original Source

Package com.google.android.exoplayer2.trackselection

Class TrackSelectionArray

  • java.lang.Object

    • com.google.android.exoplayer2.trackselection.TrackSelectionArray

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classTrackSelectionArrayextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

An array of TrackSelections.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | int | length | Deprecated.

The length of this array. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | TrackSelectionArray​(@NullableType TrackSelection... trackSelections) | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | boolean | equals​(Object obj) | Deprecated. | | TrackSelection | get​(int index) | Deprecated.

Returns the selection at a given index. | | @NullableType TrackSelection[] | getAll() | Deprecated.

Returns the selections in a newly allocated array. | | int | hashCode() | Deprecated. |

- 

Methods inherited from class java.lang.Object

clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

length

public final int length

Deprecated.

The length of this array.

Constructor Detail

- 

TrackSelectionArray

public TrackSelectionArray​(@NullableType[TrackSelection](TrackSelection.html "interface in com.google.android.exoplayer2.trackselection")... trackSelections)

Deprecated. Parameters:trackSelections - The selections. Must not be null, but may contain null elements.

Method Detail

- 

get

@Nullable
public[TrackSelection](TrackSelection.html "interface in com.google.android.exoplayer2.trackselection")get​(int index)

Deprecated.

Returns the selection at a given index. Parameters:index - The index of the selection.Returns:The selection.

- 

getAll

public @NullableType[TrackSelection](TrackSelection.html "interface in com.google.android.exoplayer2.trackselection")[] getAll()

Deprecated.

Returns the selections in a newly allocated array.

- 

hashCode

public int hashCode()

Deprecated. Overrides:hashCode in class Object

- 

equals

public boolean equals​(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)

Deprecated. Overrides:equals in class Object