TracksChooserDialogFragment

public class TracksChooserDialogFragment extends DialogFragment

A DialogFragment to show the available tracks (Text and Audio) for user to select. When tracks are selected by the user, it calls setActiveMediaTracks(long[]) to select those tracks on the remote receiver.

Inherited Constant Summary

Public Constructor Summary

TracksChooserDialogFragment()
This constructor was deprecated. Use newInstance() instead.

Public Method Summary

static TracksChooserDialogFragment
newInstance()
Creates a new instance of the dialog.
static TracksChooserDialogFragment
newInstance(MediaInfo mediaInfo, long[] activeTrackIds)
This method was deprecated. Use newInstance() instead.
void
onCreate(Bundle savedInstanceState)
Dialog
onCreateDialog(Bundle savedInstanceState)
void

Inherited Method Summary

Public Constructors

public TracksChooserDialogFragment ()

This constructor was deprecated.
Use newInstance() instead.

Public Methods

public static TracksChooserDialogFragment newInstance ()

Creates a new instance of the dialog.

The dialog will associate with the current RemoteMediaClient of the active CastSession, if there is any. The dialog shows the list of available audio and text tracks for selection. Upon committing, the dialog will call setActiveMediaTracks(long[]) to select tracks.

Returns

public static TracksChooserDialogFragment newInstance (MediaInfo mediaInfo, long[] activeTrackIds)

This method was deprecated.
Use newInstance() instead.

Creates a new instance of the dialog.

Parameters
mediaInfo The MediaInfo whose tracks will be shown in this dialog.
activeTrackIds The array of current active track IDs.
Returns

public void onCreate (Bundle savedInstanceState)

public Dialog onCreateDialog (Bundle savedInstanceState)

public void onDestroyView ()