Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# UserRouteInfo

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/media/MediaRouter.UserRouteInfo "View this page in Java")

```
open class UserRouteInfo : MediaRouter.RouteInfo
```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [android.media.MediaRouter.RouteInfo](https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo) ||
|   | ↳ | [android.media.MediaRouter.UserRouteInfo](https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#) |

Information about a route that the application may define and modify. A user route defaults to `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_REMOTE:kotlin.Int` and `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_FIXED:kotlin.Int`.

## Summary

| Inherited constants ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo` |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_BLUETOOTH:kotlin.Int` A receiver device type of the route indicating the presentation of the media is happening on a bluetooth device such as a bluetooth speaker. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_SPEAKER:kotlin.Int` A receiver device type of the route indicating the presentation of the media is happening on a speaker. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_TV:kotlin.Int` A receiver device type of the route indicating the presentation of the media is happening on a TV. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_UNKNOWN:kotlin.Int` The default receiver device type of the route indicating the type is unknown. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_LOCAL:kotlin.Int` The default playback type, "local", indicating the presentation of the media is happening on the same device (e.g. a phone, a tablet) as where it is controlled from. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_REMOTE:kotlin.Int` A playback type indicating the presentation of the media is happening on a different device (i.e. the remote device) than where it is controlled from. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_FIXED:kotlin.Int` Playback information indicating the playback volume is fixed, i.e. it cannot be controlled from this object. An example of fixed playback volume is a remote player, playing over HDMI where the user prefers to control the volume on the HDMI sink, rather than attenuate at the source. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_VARIABLE:kotlin.Int` Playback information indicating the playback volume is variable and can be controlled from this object. <br /> | ||

| Public methods ||
|---|---|
| open [RemoteControlClient](https://developer.android.com/reference/kotlin/android/media/RemoteControlClient)! | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#getRemoteControlClient()()` Retrieve the RemoteControlClient associated with this route, if one has been set. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#requestSetVolume(kotlin.Int)(volume: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Request a volume change for this route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#requestUpdateVolume(kotlin.Int)(direction: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Request an incremental volume update for this route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setDescription(kotlin.CharSequence)(description: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Set the user-visible description of this route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setIconDrawable(android.graphics.drawable.Drawable)(icon: https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.html#!)` Set an icon that will be used to represent this route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setIconResource(kotlin.Int)(resId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Set an icon that will be used to represent this route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setName(kotlin.Int)(resId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Set the user-visible name of this route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setName(kotlin.CharSequence)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Set the user-visible name of this route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setPlaybackStream(kotlin.Int)(stream: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Defines over what stream type the media is presented. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setPlaybackType(kotlin.Int)(type: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Defines whether playback associated with this route is "local" (`https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_LOCAL:kotlin.Int`) or "remote" (`https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_REMOTE:kotlin.Int`). |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setRemoteControlClient(android.media.RemoteControlClient)(rcc: https://developer.android.com/reference/kotlin/android/media/RemoteControlClient!)` Set the RemoteControlClient responsible for reporting playback info for this user route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setStatus(kotlin.CharSequence)(status: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!)` Set the current user-visible status for this route. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setVolume(kotlin.Int)(volume: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Defines at what volume the playback associated with this route is performed (for user feedback purposes). |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setVolumeCallback(android.media.MediaRouter.VolumeCallback)(vcb: https://developer.android.com/reference/kotlin/android/media/MediaRouter.VolumeCallback!)` Set a callback to be notified of volume update requests |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setVolumeHandling(kotlin.Int)(volumeHandling: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Defines whether volume for the playback associated with this route is fixed (`https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_FIXED:kotlin.Int`) or can modified (`https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_VARIABLE:kotlin.Int`). |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setVolumeMax(kotlin.Int)(volumeMax: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Defines the maximum volume at which the playback associated with this route is performed (for user feedback purposes). |

| Inherited functions ||
|---|---|
| From class `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo` |---|---| | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteCategory!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getCategory()()` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getDescription()()` Gets the user-visible description of the route. The route description describes the kind of destination represented by the route. It may be a user-supplied string, a model number or brand of device. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getDeviceType()()` Gets the type of the receiver device associated with this route. <br /> | | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteGroup!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getGroup()()` <br /> | | `https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.html#!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getIconDrawable()()` Get the icon representing this route. This icon will be used in picker UIs if available. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getName()()` Gets the user-visible name of the route. The route name identifies the destination represented by the route. It may be a user-supplied name, an alias, or device serial number. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getName(android.content.Context)(context: https://developer.android.com/reference/kotlin/android/content/Context.html#!)` Return the properly localized/resource user-visible name of this route. The route name identifies the destination represented by the route. It may be a user-supplied name, an alias, or device serial number. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getPlaybackStream()()` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getPlaybackType()()` <br /> | | `https://developer.android.com/reference/kotlin/android/view/Display.html#!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getPresentationDisplay()()` Gets the `https://developer.android.com/reference/kotlin/android/view/Display.html#` that should be used by the application to show a `https://developer.android.com/reference/kotlin/android/app/Presentation.html#` on an external display when this route is selected. Depending on the route, this may only be valid if the route is currently selected. The preferred presentation display may change independently of the route being selected or unselected. For example, the presentation display of the default system route may change when an external HDMI display is connected or disconnected even though the route itself has not changed. This method may return null if there is no external display associated with the route or if the display is not ready to show UI yet. The application should listen for changes to the presentation display using the `https://developer.android.com/reference/kotlin/android/media/MediaRouter.Callback#onRoutePresentationDisplayChanged(android.media.MediaRouter,%20android.media.MediaRouter.RouteInfo)` callback and show or dismiss its `https://developer.android.com/reference/kotlin/android/app/Presentation.html#` accordingly when the display becomes available or is removed. This method only makes sense for `https://developer.android.com/reference/kotlin/android/media/MediaRouter#ROUTE_TYPE_LIVE_VIDEO:kotlin.Int` routes. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getStatus()()` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getSupportedTypes()()` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getTag()()` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getVolume()()` Return the current volume for this route. Depending on the route, this may only be valid if the route is currently selected. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getVolumeHandling()()` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getVolumeMax()()` <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#isConnecting()()` Returns true if the route is in the process of connecting and is not yet ready for use. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#isEnabled()()` Returns true if this route is enabled and may be selected. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#setTag(kotlin.Any)(tag: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!)` Set an application-specific tag object for this route. The application may use this to store arbitrary data associated with the route for internal tracking. Note that the lifespan of a route may be well past the lifespan of an Activity or other Context; take care that objects you store here will not keep more data in memory alive than you intend. <br /> | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#toString()()` Returns a string representation of the object. <br /> | ||

## Public methods

### getRemoteControlClient

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun getRemoteControlClient(): RemoteControlClient!
```

Retrieve the RemoteControlClient associated with this route, if one has been set.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/media/RemoteControlClient!` | the RemoteControlClient associated with this route |

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo#setRemoteControlClient(android.media.RemoteControlClient)`

### requestSetVolume

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun requestSetVolume(volume: Int): Unit
```

Request a volume change for this route.

| Parameters ||
|---|---|
| `volume` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): value between 0 and getVolumeMax |

### requestUpdateVolume

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun requestUpdateVolume(direction: Int): Unit
```

Request an incremental volume update for this route.

| Parameters ||
|---|---|
| `direction` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Delta to apply to the current volume |

### setDescription

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setDescription(description: CharSequence!): Unit
```

Set the user-visible description of this route.

The route description describes the kind of destination represented by the route. It may be a user-supplied string, a model number or brand of device.

| Parameters ||
|---|---|
| `description` | [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!: The description of the route, or null if none. |

### setIconDrawable

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setIconDrawable(icon: Drawable!): Unit
```

Set an icon that will be used to represent this route. The system may use this icon in picker UIs or similar.

| Parameters ||
|---|---|
| `icon` | [Drawable](https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.html#)!: icon drawable to use to represent this route |

### setIconResource

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setIconResource(resId: Int): Unit
```

Set an icon that will be used to represent this route. The system may use this icon in picker UIs or similar.

| Parameters ||
|---|---|
| `resId` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Resource ID of an icon drawable to use to represent this route |

### setName

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setName(resId: Int): Unit
```

Set the user-visible name of this route.

The route name identifies the destination represented by the route. It may be a user-supplied name, an alias, or device serial number.

| Parameters ||
|---|---|
| `resId` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Resource ID of the name to display to the user to describe this route |

### setName

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setName(name: CharSequence!): Unit
```

Set the user-visible name of this route.

| Parameters ||
|---|---|
| `name` | [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!: Name to display to the user to describe this route |

### setPlaybackStream

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setPlaybackStream(stream: Int): Unit
```

Defines over what stream type the media is presented.

| Parameters ||
|---|---|
| `stream` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): |

### setPlaybackType

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setPlaybackType(type: Int): Unit
```

Defines whether playback associated with this route is "local" (`https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_LOCAL:kotlin.Int`) or "remote" (`https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_REMOTE:kotlin.Int`).

| Parameters ||
|---|---|
| `type` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Value is one of the following: - `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_LOCAL:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_REMOTE:kotlin.Int` |

### setRemoteControlClient

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setRemoteControlClient(rcc: RemoteControlClient!): Unit
```

Set the RemoteControlClient responsible for reporting playback info for this user route.

If this route manages remote playback, the data exposed by this RemoteControlClient will be used to reflect and update information such as route volume info in related UIs.

The RemoteControlClient must have been previously registered with `https://developer.android.com/reference/kotlin/android/media/AudioManager#registerRemoteControlClient(android.media.RemoteControlClient)`.

| Parameters ||
|---|---|
| `rcc` | [RemoteControlClient](https://developer.android.com/reference/kotlin/android/media/RemoteControlClient)!: RemoteControlClient associated with this route |

### setStatus

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setStatus(status: CharSequence!): Unit
```

Set the current user-visible status for this route.

| Parameters ||
|---|---|
| `status` | [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)!: Status to display to the user to describe what the endpoint of this route is currently doing |

### setVolume

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setVolume(volume: Int): Unit
```

Defines at what volume the playback associated with this route is performed (for user feedback purposes). This information is only used when the playback is not local.

| Parameters ||
|---|---|
| `volume` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): |

### setVolumeCallback

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setVolumeCallback(vcb: MediaRouter.VolumeCallback!): Unit
```

Set a callback to be notified of volume update requests

| Parameters ||
|---|---|
| `vcb` | [MediaRouter.VolumeCallback](https://developer.android.com/reference/kotlin/android/media/MediaRouter.VolumeCallback)!: |

### setVolumeHandling

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setVolumeHandling(volumeHandling: Int): Unit
```

Defines whether volume for the playback associated with this route is fixed (`https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_FIXED:kotlin.Int`) or can modified (`https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_VARIABLE:kotlin.Int`).

| Parameters ||
|---|---|
| `volumeHandling` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Value is one of the following: - `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_FIXED:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_VARIABLE:kotlin.Int` |

### setVolumeMax

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
open fun setVolumeMax(volumeMax: Int): Unit
```

Defines the maximum volume at which the playback associated with this route is performed (for user feedback purposes). This information is only used when the playback is not local.

| Parameters ||
|---|---|
| `volumeMax` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): |