Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

MediaRouteDialogFactory

extends Object
java.lang.Object
   ↳ android.support.v7.app.MediaRouteDialogFactory

Class Overview

The media route dialog factory is responsible for creating the media route chooser and controller dialogs as needed.

The application can customize the dialogs by providing a subclass of the dialog factory to the MediaRouteButton using the setDialogFactory method.

Summary

Public Constructors
MediaRouteDialogFactory ()
Creates a default media route dialog factory.
Public Methods
static MediaRouteDialogFactory getDefault ()
Gets the default factory instance.
MediaRouteChooserDialogFragment onCreateChooserDialogFragment ()
Called when the chooser dialog is being opened and it is time to create the fragment.
MediaRouteControllerDialogFragment onCreateControllerDialogFragment ()
Called when the controller dialog is being opened and it is time to create the fragment.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaRouteDialogFactory ()

Creates a default media route dialog factory.

Public Methods

public static MediaRouteDialogFactory getDefault ()

Gets the default factory instance.

Returns
  • The default media route dialog factory, never null.

public MediaRouteChooserDialogFragment onCreateChooserDialogFragment ()

Called when the chooser dialog is being opened and it is time to create the fragment.

Subclasses may override this method to create a customized fragment.

Returns
  • The media route chooser dialog fragment, must not be null.

public MediaRouteControllerDialogFragment onCreateControllerDialogFragment ()

Called when the controller dialog is being opened and it is time to create the fragment.

Subclasses may override this method to create a customized fragment.

Returns
  • The media route controller dialog fragment, must not be null.