public final class TrackSelectorResult
extends java.lang.Object
TrackSelector operation.| Modifier and Type | Field and Description |
|---|---|
TrackGroupArray |
groups
The groups 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 renderer, to be used with the selections. |
TrackSelectionArray |
selections
A
TrackSelectionArray containing the selection for each renderer. |
| Constructor and Description |
|---|
TrackSelectorResult(TrackGroupArray groups,
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 TrackSelectionArray selections
TrackSelectionArray containing the 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 renderer, to be used with the selections.public TrackSelectorResult(TrackGroupArray groups, TrackSelectionArray selections, java.lang.Object info, RendererConfiguration[] rendererConfigurations)
groups - The groups provided to the TrackSelector.selections - A TrackSelectionArray containing the selection for each renderer.info - An opaque object that will be returned to
TrackSelector.onSelectionActivated(Object) should the selections be activated.rendererConfigurations - A RendererConfiguration for each 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 in all cases.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 track selections and configurations for the
renderer.other - The other TrackSelectorResult. May be null, in which case false
will be returned in all cases.index - The renderer index to check for equivalence.other for all renderers.