TrackSelector.InvalidationListener


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 functions

Unit

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

Unit

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

Public functions

onRendererCapabilitiesChanged

fun onRendererCapabilitiesChanged(renderer: Renderer!): Unit

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

fun onTrackSelectionsInvalidated(parameters: TrackSelectionParameters?): Unit

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
parameters: TrackSelectionParameters?

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