FileDocCategorySizeDatePackage
MediaRouteDialogFactory.javaAPI DocAndroid 5.1 API2426Thu Mar 12 22:22:56 GMT 2015android.support.v7.app

MediaRouteDialogFactory

public class MediaRouteDialogFactory extends Object
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 {@link MediaRouteButton} using the {@link MediaRouteButton#setDialogFactory setDialogFactory} method.

Fields Summary
private static final MediaRouteDialogFactory
sDefault
Constructors Summary
public MediaRouteDialogFactory()
Creates a default media route dialog factory.


                
      
    
Methods Summary
public static android.support.v7.app.MediaRouteDialogFactorygetDefault()
Gets the default factory instance.

return
The default media route dialog factory, never null.

        return sDefault;
    
public MediaRouteChooserDialogFragmentonCreateChooserDialogFragment()
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.

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

        return new MediaRouteChooserDialogFragment();
    
public MediaRouteControllerDialogFragmentonCreateControllerDialogFragment()
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.

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

        return new MediaRouteControllerDialogFragment();