TracksChooserDialogFragment

public classTracksChooserDialogFragmentextendsDialogFragment

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

Inherited Constant Summary

Inherited Field Summary

Public Constructor Summary

TracksChooserDialogFragment()
This constructor is 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 is deprecated. Use newInstance()instead.
void
onCreate(Bundle savedInstanceState)
Dialog
onCreateDialog(Bundle savedInstanceState)
void

Inherited Method Summary

Public Constructors

publicTracksChooserDialogFragment()

This constructor is deprecated.
Use newInstance()instead.

Public Methods

public static TracksChooserDialogFragmentnewInstance()

Creates a new instance of the dialog.

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

Returns

public static TracksChooserDialogFragmentnewInstance(MediaInfo mediaInfo, long[] activeTrackIds)

This method is deprecated.
Use newInstance()instead.

Creates a new instance of the dialog.

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

public voidonCreate(Bundle savedInstanceState)

publicDialogonCreateDialog(Bundle savedInstanceState)

public voidonDestroyView()