MediaRouteChooserDialogFragment

open class MediaRouteChooserDialogFragment
kotlin.Any
   ↳ androidx.mediarouter.app.MediaRouteChooserDialogFragment

Media route chooser dialog fragment.

Creates a MediaRouteChooserDialog. The application may subclass this dialog fragment to customize the media route chooser dialog.

Summary

Public constructors

Creates a media route chooser dialog fragment.

Public methods
open MediaRouteChooserDialog!
onCreateChooserDialog(context: Context!, savedInstanceState: Bundle!)

Called when the chooser dialog is being created.

open Unit

open Dialog!
onCreateDialog(savedInstanceState: Bundle!)

open Unit

Sets the media route selector for filtering the routes that the user can select.

open MediaRouteSelector!

Gets the media route selector for filtering the routes that the user can select.

Public constructors

<init>

MediaRouteChooserDialogFragment()

Creates a media route chooser dialog fragment.

All subclasses of this class must also possess a default constructor.

Public methods

onCreateChooserDialog

open fun onCreateChooserDialog(context: Context!, savedInstanceState: Bundle!): MediaRouteChooserDialog!

Called when the chooser dialog is being created.

Subclasses may override this method to customize the dialog.

onConfigurationChanged

open fun onConfigurationChanged(newConfig: Configuration!): Unit

onCreateDialog

open fun onCreateDialog(savedInstanceState: Bundle!): Dialog!

setRouteSelector

open fun setRouteSelector(selector: MediaRouteSelector!): Unit

Sets the media route selector for filtering the routes that the user can select. This method must be called before the fragment is added.

Parameters
selector MediaRouteSelector!: The selector to set.

getRouteSelector

open fun getRouteSelector(): MediaRouteSelector!

Gets the media route selector for filtering the routes that the user can select.

Return
MediaRouteSelector!: The selector, never null.