Class TrackSelectionArray
- java.lang.Object
-
- com.google.android.exoplayer2.trackselection.TrackSelectionArray
-
@Deprecated public final class TrackSelectionArray extends Object
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 ofTrackSelections.
-
-
Field Summary
Fields Modifier and Type Field Description intlengthDeprecated.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 booleanequals(Object obj)Deprecated.TrackSelectionget(int index)Deprecated.Returns the selection at a given index.@NullableType TrackSelection[]getAll()Deprecated.Returns the selections in a newly allocated array.inthashCode()Deprecated.
-
-
-
Constructor Detail
-
TrackSelectionArray
public TrackSelectionArray(@NullableType TrackSelection... trackSelections)
Deprecated.- Parameters:
trackSelections- The selections. Must not be null, but may contain null elements.
-
-
Method Detail
-
get
@Nullable public 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[] getAll()
Deprecated.Returns the selections in a newly allocated array.
-
-