MediaRouteButton.ShowDialog Method

Definition

Show the route chooser or controller dialog.

[Android.Runtime.Register("showDialog", "()V", "GetShowDialogHandler")]
public virtual void ShowDialog ();
[<Android.Runtime.Register("showDialog", "()V", "GetShowDialogHandler")>]
abstract member ShowDialog : unit -> unit
override this.ShowDialog : unit -> unit
Attributes

Remarks

Show the route chooser or controller dialog.

If the default route is selected or if the currently selected route does not match the #getRouteTypes route types, then shows the route chooser dialog. Otherwise, shows the route controller dialog to offer the user a choice to disconnect from the route or perform other control actions such as setting the route's volume.

This will attach a DialogFragment to the containing Activity.

Java documentation for android.app.MediaRouteButton.showDialog().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to