public final class TrackSelectorResult extends Object
TrackSelector operation.| Modifier and Type | Field and Description |
|---|---|
TrackGroupArray |
groups
The track groups that were provided to the
TrackSelector. |
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 track selection for each renderer. |
| Constructor and Description |
|---|
TrackSelectorResult(TrackGroupArray groups,
TrackSelectionArray selections,
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 track selection for each renderer.public final 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, Object info, RendererConfiguration[] rendererConfigurations)
groups - The track 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 selection 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.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.index - The renderer index to check for equivalence.other for the renderer at the specified
index.