# SystemOutputSwitcherDialogController

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/mediarouter/app/SystemOutputSwitcherDialogController "View this page in Java")

<br />

```
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 functions                                        |
|---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [showDialog](https://developer.android.com/reference/kotlin/androidx/mediarouter/app/SystemOutputSwitcherDialogController#showDialog(android.content.Context))`(context: `[Context](https://developer.android.com/reference/android/content/Context.html)`)` Shows the system output switcher dialog. |

## Public functions

### showDialog

Added in[1.4.0](https://developer.android.com/jetpack/androidx/releases/mediarouter#1.4.0)  

```
java-static fun showDialog(context: Context): Boolean
```

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                                         |
|--------------------------------------------------------------------------------------------|-----------------|
| `context: `[Context](https://developer.android.com/reference/android/content/Context.html) | Android context |

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|----------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | `true`if the dialog was shown successfully and`false`otherwise |