# SystemOutputSwitcherDialogController

Artifact: [androidx.mediarouter:mediarouter](https://developer.android.com/jetpack/androidx/releases/mediarouter) [View Source](https://cs.android.com/search?q=file:androidx/mediarouter/app/SystemOutputSwitcherDialogController.java+class:androidx.mediarouter.app.SystemOutputSwitcherDialogController) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/mediarouter#1.4.0)

*** ** * ** ***


```
public final class SystemOutputSwitcherDialogController
```

<br />

*** ** * ** ***

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

See [the Media Routing guide](https://developer.android.com/guide/topics/media/media-routing) for more information.

## Summary

| ### Public methods |
|---|---|
| `static boolean` | `https://developer.android.com/reference/androidx/mediarouter/app/SystemOutputSwitcherDialogController#showDialog(android.content.Context)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context)` Shows the system output switcher dialog. |

## Public methods

### showDialog

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/mediarouter#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](https://developer.android.com/guide/topics/media/media-routing#output-switcher) for more details.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html context` | Android context |

| Returns |
|---|---|
| `boolean` | `true` if the dialog was shown successfully and `false` otherwise |