public interface

TrackSelectionView.TrackSelectionListener

 androidx.media3.ui.TrackSelectionView.TrackSelectionListener

Overview

Listener for changes to the selected tracks.

Summary

Methods
public voidonTrackSelectionChanged(boolean isDisabled, java.util.Map<TrackGroup, TrackSelectionOverride> overrides)

Called when the selected tracks changed.

Methods

public void onTrackSelectionChanged(boolean isDisabled, java.util.Map<TrackGroup, TrackSelectionOverride> overrides)

Called when the selected tracks changed.

Parameters:

isDisabled: Whether the disabled option is selected.
overrides: The selected track overrides.