public class

TracksChooserDialogFragment

extends DialogFragment
java.lang.Object
   ↳ android.support.v4.app.Fragment
     ↳ android.support.v4.app.DialogFragment
       ↳ com.google.android.gms.cast.framework.media.TracksChooserDialogFragment

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class android.support.v4.app.DialogFragment
Public Constructors
TracksChooserDialogFragment()
Public Methods
static TracksChooserDialogFragment newInstance(MediaInfo mediaInfo, long[] activeTrackIds)
Creates a new instance of the dialog.
void onCreate(Bundle savedInstanceState)
Dialog onCreateDialog(Bundle savedInstanceState)
void onDestroyView()
[Expand]
Inherited Methods
From class android.support.v4.app.DialogFragment
From class android.support.v4.app.Fragment
From class java.lang.Object
From interface android.content.DialogInterface.OnCancelListener
From interface android.content.DialogInterface.OnDismissListener
From interface android.content.ComponentCallbacks
From interface android.view.View.OnCreateContextMenuListener

Public Constructors

public TracksChooserDialogFragment ()

Public Methods

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

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 ()