SystemOutputSwitcherDialogController


public final class SystemOutputSwitcherDialogController


Provides an utility method to show the system's output switcher dialog.

See the Media Routing guide for more information.

Summary

Public methods

static boolean

Shows the system output switcher dialog.

Public methods

showDialog

Added in 1.4.0
public static boolean showDialog(@NonNull Context context)

Shows the system output switcher dialog.

The appearance and precise behaviour of the system output switcher dialog may vary across different devices, OS versions, and form factors, but the basic functionality stays the same.

See Output Switcher documentation for more details.

Parameters
@NonNull Context context

Android context

Returns
boolean

true if the dialog was shown successfully and false otherwise