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

# RouteInfo

*** ** * ** ***

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

```
open class 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#) |

|---|
| Known Direct Subclasses [MediaRouter.RouteGroup](https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteGroup), [MediaRouter.UserRouteInfo](https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo) |---|---| | [MediaRouter.RouteGroup](https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteGroup) | Information about a route that consists of multiple other routes in a group. | | [MediaRouter.UserRouteInfo](https://developer.android.com/reference/kotlin/android/media/MediaRouter.UserRouteInfo) | Information about a route that the application may define and modify. | |

Information about a media route.

## Summary

| Constants ||
|---|---|
| static [Int](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. |
| static [Int](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. |
| static [Int](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. |
| static [Int](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. |
| static [Int](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. |
| static [Int](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. |
| static [Int](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. |
| static [Int](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. |

| Public methods ||
|---|---|
| open [MediaRouter.RouteCategory](https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteCategory)! | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getCategory()()` <br /> |
| open [CharSequence](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. |
| open [Int](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. |
| open [MediaRouter.RouteGroup](https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteGroup)! | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getGroup()()` <br /> |
| open [Drawable](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. |
| open [CharSequence](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. |
| open [CharSequence](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. |
| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getPlaybackStream()()` <br /> |
| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getPlaybackType()()` <br /> |
| open [Display](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. |
| open [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getStatus()()` <br /> |
| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getSupportedTypes()()` <br /> |
| open [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)! | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getTag()()` <br /> |
| open [Int](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. |
| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getVolumeHandling()()` <br /> |
| open [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getVolumeMax()()` <br /> |
| open [Boolean](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. |
| open [Boolean](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. |
| open [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#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.RouteInfo#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.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. |
| open [String](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. |

## Constants

### DEVICE_TYPE_BLUETOOTH

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

```
static val DEVICE_TYPE_BLUETOOTH: 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.

    Value: 3

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getDeviceType()`

### DEVICE_TYPE_SPEAKER

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

```
static val DEVICE_TYPE_SPEAKER: Int
```

A receiver device type of the route indicating the presentation of the media is happening on a speaker.

    Value: 2

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getDeviceType()`

### DEVICE_TYPE_TV

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

```
static val DEVICE_TYPE_TV: Int
```

A receiver device type of the route indicating the presentation of the media is happening on a TV.

    Value: 1

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getDeviceType()`

### DEVICE_TYPE_UNKNOWN

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

```
static val DEVICE_TYPE_UNKNOWN: Int
```

The default receiver device type of the route indicating the type is unknown.

    Value: 0

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getDeviceType()`

### PLAYBACK_TYPE_LOCAL

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

```
static val PLAYBACK_TYPE_LOCAL: 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.

    Value: 0

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getPlaybackType()`

### PLAYBACK_TYPE_REMOTE

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

```
static val PLAYBACK_TYPE_REMOTE: 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.

    Value: 1

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getPlaybackType()`

### PLAYBACK_VOLUME_FIXED

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

```
static val PLAYBACK_VOLUME_FIXED: 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.

    Value: 0

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getVolumeHandling()`

### PLAYBACK_VOLUME_VARIABLE

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

```
static val PLAYBACK_VOLUME_VARIABLE: Int
```

Playback information indicating the playback volume is variable and can be controlled from this object.

    Value: 1

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#getVolumeHandling()`

## Public methods

### getCategory

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

```
open fun getCategory(): MediaRouter.RouteCategory!
```

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteCategory!` | the category this route belongs to. |

### getDescription

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

```
open fun getDescription(): CharSequence!
```

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.

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

### getDeviceType

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

```
open fun getDeviceType(): Int
```

Gets the type of the receiver device associated with this route.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | The type of the receiver device associated with this route: `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_BLUETOOTH:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_TV:kotlin.Int`, `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_SPEAKER:kotlin.Int`, or `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_UNKNOWN:kotlin.Int`. Value is one of the following: - `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_UNKNOWN:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_TV:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_SPEAKER:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#DEVICE_TYPE_BLUETOOTH:kotlin.Int` |

### getGroup

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

```
open fun getGroup(): MediaRouter.RouteGroup!
```

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteGroup!` | The group that this route belongs to. |

### getIconDrawable

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

```
open fun getIconDrawable(): Drawable!
```

Get the icon representing this route. This icon will be used in picker UIs if available.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/graphics/drawable/Drawable.html#!` | the icon representing this route or null if no icon is available |

### getName

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

```
open fun getName(): CharSequence!
```

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.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!` | The user-visible name of a media route. This is the string presented to users who may select this as the active route. |

### getName

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

```
open fun getName(context: Context!): CharSequence!
```

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.

| Parameters ||
|---|---|
| `context` | [Context](https://developer.android.com/reference/kotlin/android/content/Context.html#)!: Context used to resolve the correct configuration to load |

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!` | The user-visible name of a media route. This is the string presented to users who may select this as the active route. |

### getPlaybackStream

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

```
open fun getPlaybackStream(): Int
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | the stream over which the playback associated with this route is performed |

**See Also**

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

### getPlaybackType

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

```
open fun getPlaybackType(): Int
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | the type of playback associated with this route. 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` |

**See Also**

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

### getPresentationDisplay

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

```
open fun getPresentationDisplay(): Display!
```

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.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/view/Display.html#!` | The preferred presentation display to use when this route is selected or null if none. |

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter#ROUTE_TYPE_LIVE_VIDEO:kotlin.Int`
- `https://developer.android.com/reference/kotlin/android/app/Presentation.html#`

### getStatus

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

```
open fun getStatus(): CharSequence!
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html!` | The user-visible status for a media route. This may include a description of the currently playing media, if available. |

### getSupportedTypes

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

```
open fun getSupportedTypes(): Int
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | A media type flag set describing which types this route supports. |

### getTag

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

```
open fun getTag(): Any!
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html!` | The tag object previously set by the application |

**See Also**

- `https://developer.android.com/reference/kotlin/android/media/MediaRouter.RouteInfo#setTag(kotlin.Any)`

### getVolume

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

```
open fun getVolume(): Int
```

Return the current volume for this route. Depending on the route, this may only be valid if the route is currently selected.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | the volume at which the playback associated with this route is performed |

**See Also**

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

### getVolumeHandling

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

```
open fun getVolumeHandling(): Int
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | how volume is handling on the route. 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` |

**See Also**

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

### getVolumeMax

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

```
open fun getVolumeMax(): Int
```

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | the maximum volume at which the playback associated with this route is performed |

**See Also**

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

### isConnecting

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

```
open fun isConnecting(): Boolean
```

Returns true if the route is in the process of connecting and is not yet ready for use.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | True if this route is in the process of connecting. |

### isEnabled

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

```
open fun isEnabled(): Boolean
```

Returns true if this route is enabled and may be selected.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | True if this route is enabled. |

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

### setTag

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

```
open fun setTag(tag: Any!): Unit
```

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.

| Parameters ||
|---|---|
| `tag` | [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!: Arbitrary, app-specific data for this route to hold for later use |

### toString

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

```
open fun toString(): String
```

Returns a string representation of the object.

| Return ||
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | a string representation of the object. |