public class MediaRouteDialogFactory extends Object
The application can customize the dialogs by providing a subclass of the
dialog factory to the MediaRouteButton
using the
setDialogFactory
method.
Constructor and Description |
---|
MediaRouteDialogFactory()
Creates a default media route dialog factory.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MediaRouteDialogFactory()
@NonNull public static MediaRouteDialogFactory getDefault()
@NonNull public MediaRouteChooserDialogFragment onCreateChooserDialogFragment()
Subclasses may override this method to create a customized fragment.
@NonNull public MediaRouteControllerDialogFragment onCreateControllerDialogFragment()
Subclasses may override this method to create a customized fragment.