TrackSelector.InvalidationListener


public interface TrackSelector.InvalidationListener


Notified when selections previously made by a TrackSelector are no longer valid.

The track selector may call methods of this listener from any thread.

Summary

Public methods

default void

Called by a TrackSelector to indicate that selections it has previously made may no longer be valid due to the renderer capabilities change.

abstract void

Called by a TrackSelector to indicate that selections it has previously made are no longer valid, or that track selection parameters have changed.

Public methods

onRendererCapabilitiesChanged

default void onRendererCapabilitiesChanged(Renderer renderer)

Called by a TrackSelector to indicate that selections it has previously made may no longer be valid due to the renderer capabilities change.

Parameters
Renderer renderer

The renderer whose capabilities changed.

onTrackSelectionsInvalidated

abstract void onTrackSelectionsInvalidated(
    @Nullable TrackSelectionParameters parameters
)

Called by a TrackSelector to indicate that selections it has previously made are no longer valid, or that track selection parameters have changed.

If parameters is not null, the receiver must call onParametersActivated to activate the new parameters.

Parameters
@Nullable TrackSelectionParameters parameters

The new track selection parameters, or null if selections need to be re-evaluated without applying new parameters.