public final class TrackSelectorResult
extends java.lang.Object
TrackSelector operation.| Modifier and Type | Field and Description |
|---|---|
TrackGroupArray |
groups
The track groups that were provided to the
TrackSelector. |
java.lang.Object |
info
An opaque object that will be returned to
TrackSelector.onSelectionActivated(Object)
should the selections be activated. |
RendererConfiguration[] |
rendererConfigurations
A
RendererConfiguration for each enabled renderer, to be used with the selections. |
boolean[] |
renderersEnabled
An array containing whether each renderer is enabled after the track selection operation.
|
TrackSelectionArray |
selections
A
TrackSelectionArray containing the track selection for each renderer. |
| Constructor and Description |
|---|
TrackSelectorResult(TrackGroupArray groups,
boolean[] renderersEnabled,
TrackSelectionArray selections,
java.lang.Object info,
RendererConfiguration[] rendererConfigurations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEquivalent(TrackSelectorResult other)
Returns whether this result is equivalent to
other for all renderers. |
boolean |
isEquivalent(TrackSelectorResult other,
int index)
Returns whether this result is equivalent to
other for the renderer at the given index. |
public final TrackGroupArray groups
TrackSelector.public final boolean[] renderersEnabled
public final TrackSelectionArray selections
TrackSelectionArray containing the track selection for each renderer.public final java.lang.Object info
TrackSelector.onSelectionActivated(Object)
should the selections be activated.public final RendererConfiguration[] rendererConfigurations
RendererConfiguration for each enabled renderer, to be used with the selections.public TrackSelectorResult(TrackGroupArray groups, boolean[] renderersEnabled, TrackSelectionArray selections, java.lang.Object info, RendererConfiguration[] rendererConfigurations)
groups - The track groups provided to the TrackSelector.renderersEnabled - An array containing whether each renderer is enabled after the track
selection operation.selections - A TrackSelectionArray containing the selection for each renderer.info - An opaque object that will be returned to
TrackSelector.onSelectionActivated(Object) should the selection be activated.rendererConfigurations - A RendererConfiguration for each enabled renderer,
to be used with the selections.public boolean isEquivalent(TrackSelectorResult other)
other for all renderers.other - The other TrackSelectorResult. May be null, in which case false
will be returned.other for all renderers.public boolean isEquivalent(TrackSelectorResult other, int index)
other for the renderer at the given index.
The results are equivalent if they have equal renderersEnabled array, track selections, and
configurations for the renderer.other - The other TrackSelectorResult. May be null, in which case false
will be returned.index - The renderer index to check for equivalence.other for the renderer at the specified
index.