> Documentation index: https://developer.android.com/reference/llms.txt

# SuggestedDeviceInfo.Builder

Artifact: [androidx.mediarouter:mediarouter](https://developer.android.com/jetpack/androidx/releases/mediarouter.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/mediarouter/media/SuggestedDeviceInfo.java+class:androidx.mediarouter.media.SuggestedDeviceInfo.Builder) Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/mediarouter.md.txt#1.9.0)

*** ** * ** ***


```
class SuggestedDeviceInfo.Builder
```

<br />

*** ** * ** ***

Builder for `SuggestedDeviceInfo`.

## Summary

| ### Public constructors |
|---|
| `Builder(deviceDisplayName: String, routeId: String, type: Int)` Constructor. |

| ### Public functions |
|---|---|
| `SuggestedDeviceInfo` | `build()` Creates a new SuggestedDeviceInfo. |
| `SuggestedDeviceInfo.Builder` | `setExtras(extras: Bundle)` Sets the `extras`. |

## Public constructors

### Builder

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

```
Builder(deviceDisplayName: String, routeId: String, type: Int)
```

Constructor.

| Parameters |
|---|---|
| `deviceDisplayName: String` | The `display name`. |
| `routeId: String` | The `route ID`. |
| `type: Int` | The `route type`. |

## Public functions

### build

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

```
fun build(): SuggestedDeviceInfo
```

Creates a new SuggestedDeviceInfo. The device display name, route ID, and type must be set. The extras cannot be null, but default to an empty `Bundle`.

### setExtras

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

```
fun setExtras(extras: Bundle): SuggestedDeviceInfo.Builder
```

Sets the `extras`.

The default value is an empty `Bundle`.

Do not mutate the given `Bundle` after passing it to this method. You can use `deepCopy` to keep a mutable copy.

| Throws |
|---|---|
| `java.lang.NullPointerException` | if the extras are null. |