MediaRouteControllerDialog

public class MediaRouteControllerDialog
extends AlertDialog

java.lang.Object
   ↳ android.app.Dialog
     ↳ androidx.appcompat.app.AppCompatDialog
       ↳ androidx.appcompat.app.AlertDialog
         ↳ androidx.mediarouter.app.MediaRouteControllerDialog


This class implements the route controller dialog for MediaRouter.

This dialog allows the user to control or disconnect from the currently selected route.

Summary

Inherited constants

Public constructors

MediaRouteControllerDialog(Context context)
MediaRouteControllerDialog(Context context, int theme)

Public methods

View getMediaControlView()

Gets the media control view that was created by onCreateMediaControlView(Bundle).

MediaSessionCompat.Token getMediaSession()

Gets the session to use for metadata and transport controls.

MediaRouter.RouteInfo getRoute()

Gets the route that this dialog is controlling.

boolean isVolumeControlEnabled()

Returns whether to enable the volume slider and volume control using the volume keys when the route supports it.

void onAttachedToWindow()
View onCreateMediaControlView(