# MediaRouter.RouteInfo

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:mediarouter-v7:28.0.0-alpha1  
Summary:[Constants](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#constants)\|[Methods](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#)  

# MediaRouter.RouteInfo

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static


class
MediaRouter.RouteInfo
`  
`

extends Object


``


`

|---|------------------------------------------------|
| java.lang.Object                                  ||
| ↳ | android.support.v7.media.MediaRouter.RouteInfo |

<br />

*** ** * ** ***

Provides information about a media route.

Each media route has a list of[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)[intent filters](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getControlFilters())that describe the capabilities of the route and the manner in which it is used and controlled.

<br />

## Summary

|                                                                                                                         ### Constants                                                                                                                          ||
|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [CONNECTION_STATE_CONNECTED](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#CONNECTION_STATE_CONNECTED) A connection state indicating the route is connected.                                                   |
| `int` | [CONNECTION_STATE_CONNECTING](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#CONNECTION_STATE_CONNECTING) A connection state indicating the route is in the process of connecting and is not yet ready for use. |
| `int` | [CONNECTION_STATE_DISCONNECTED](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#CONNECTION_STATE_DISCONNECTED) The default connection state indicating the route is disconnected.                                |
| `int` | [DEVICE_TYPE_SPEAKER](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#DEVICE_TYPE_SPEAKER) A receiver device type of the route indicating the presentation of the media is happening on a speaker.               |
| `int` | [DEVICE_TYPE_TV](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#DEVICE_TYPE_TV) A receiver device type of the route indicating the presentation of the media is happening on a TV.                              |
| `int` | [PLAYBACK_TYPE_LOCAL](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_LOCAL) The default playback type, "local", indicating the presentation of the media is happening on the same device (e.g.    |
| `int` | [PLAYBACK_TYPE_REMOTE](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_REMOTE) A playback type indicating the presentation of the media is happening on a different device (i.e.                   |
| `int` | [PLAYBACK_VOLUME_FIXED](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_FIXED) Playback information indicating the playback volume is fixed, i.e.                                                |
| `int` | [PLAYBACK_VOLUME_VARIABLE](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_VARIABLE) Playback information indicating the playback volume is variable and can be controlled from this object.     |

|                                                                                                                                                                                                                                                                                                                                                                                ### Public methods                                                                                                                                                                                                                                                                                                                                                                                ||
|--------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` boolean`                                                                                                               | ` `[canDisconnect](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#canDisconnect())`() ` Gets whether this route supports disconnecting without interrupting playback.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` int`                                                                                                                   | ` `[getConnectionState](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getConnectionState())`() ` Gets the connection state of the route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` List<`[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)`>`                     | ` `[getControlFilters](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getControlFilters())`() ` Gets a list of[media control intent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)filters that describe the capabilities of this route and the media control actions that it supports.                                                                                                                                                                                                                                                                                  |
| ` String`                                                                                                                | ` `[getDescription](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getDescription())`() ` Gets the user-visible description of the route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| ` int`                                                                                                                   | ` `[getDeviceType](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getDeviceType())`() ` Gets the type of the receiver device associated with this route.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)                                              | ` `[getExtras](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getExtras())`() ` Gets a collection of extra properties about this route that were supplied by its media route provider, or null if none.                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` `[Uri](https://developer.android.com/reference/android/net/Uri.html)                                                   | ` `[getIconUri](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getIconUri())`() ` Gets the URI of the icon representing this route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` String`                                                                                                                | ` `[getId](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getId())`() ` Gets the unique id of the route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| ` String`                                                                                                                | ` `[getName](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getName())`() ` Gets the user-visible name of the route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` int`                                                                                                                   | ` `[getPlaybackStream](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getPlaybackStream())`() ` Gets the audio stream over which the playback associated with this route is performed.                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` int`                                                                                                                   | ` `[getPlaybackType](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getPlaybackType())`() ` Gets the type of playback associated with this route.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ` `[Display](https://developer.android.com/reference/android/view/Display.html)                                          | ` `[getPresentationDisplay](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getPresentationDisplay())`() ` Gets the[Display](https://developer.android.com/reference/android/view/Display.html)that should be used by the application to show a[Presentation](https://developer.android.com/reference/android/app/Presentation.html)on an external display when this route is selected.                                                                                                                                                                                                                         |
| ` `[MediaRouter.ProviderInfo](https://developer.android.com/reference/android/support/v7/media/MediaRouter.ProviderInfo) | ` `[getProvider](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getProvider())`() ` Gets information about the provider of this media route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` `[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)                             | ` `[getSettingsIntent](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getSettingsIntent())`() ` Gets an intent sender for launching a settings activity for this route.                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` int`                                                                                                                   | ` `[getVolume](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getVolume())`() ` Gets the current volume for this route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ` int`                                                                                                                   | ` `[getVolumeHandling](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getVolumeHandling())`() ` Gets information about how volume is handled on the route.                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` int`                                                                                                                   | ` `[getVolumeMax](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getVolumeMax())`() ` Gets the maximum volume at which the playback associated with this route is performed.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` boolean`                                                                                                               | ` `[isBluetooth](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#isBluetooth())`() ` Returns true if this route is a bluetooth route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` boolean`                                                                                                               | ` `[isConnecting](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#isConnecting())`() ` Returns true if the route is in the process of connecting and is not yet ready for use.                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| ` boolean`                                                                                                               | ` `[isDefault](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#isDefault())`() ` Returns true if this route is the default route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ` boolean`                                                                                                               | ` `[isDeviceSpeaker](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#isDeviceSpeaker())`() ` Returns true if this route is the default route and the device speaker.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` boolean`                                                                                                               | ` `[isEnabled](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#isEnabled())`() ` Returns true if this route is enabled and may be selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` boolean`                                                                                                               | ` `[isSelected](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#isSelected())`() ` Returns true if this route is currently selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` boolean`                                                                                                               | ` `[matchesSelector](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#matchesSelector(android.support.v7.media.MediaRouteSelector))`(`[MediaRouteSelector](https://developer.android.com/reference/android/support/v7/media/MediaRouteSelector)` selector) ` Returns true if the route supports at least one of the capabilities described by a media route selector.                                                                                                                                                                                                                                            |
| ` void`                                                                                                                  | ` `[requestSetVolume](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#requestSetVolume(int))`(int volume) ` Requests a volume change for this route asynchronously.                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` void`                                                                                                                  | ` `[requestUpdateVolume](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#requestUpdateVolume(int))`(int delta) ` Requests an incremental volume update for this route asynchronously.                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` void`                                                                                                                  | ` `[select](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#select())`() ` Selects this media route.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ` void`                                                                                                                  | ` `[sendControlRequest](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#sendControlRequest(android.content.Intent, android.support.v7.media.MediaRouter.ControlRequestCallback))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent, `[MediaRouter.ControlRequestCallback](https://developer.android.com/reference/android/support/v7/media/MediaRouter.ControlRequestCallback)` callback) ` Sends a[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)request to be performed asynchronously by the route's destination. |
| ` boolean`                                                                                                               | ` `[supportsControlAction](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#supportsControlAction(java.lang.String, java.lang.String))`(String category, String action) ` Returns true if the route supports the specified[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)category and action.                                                                                                                                                                                                                                                               |
| ` boolean`                                                                                                               | ` `[supportsControlCategory](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#supportsControlCategory(java.lang.String))`(String category) ` Returns true if the route supports the specified[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)category.                                                                                                                                                                                                                                                                                                       |
| ` boolean`                                                                                                               | ` `[supportsControlRequest](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#supportsControlRequest(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent) ` Returns true if the route supports the specified[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)request.                                                                                                                                                                                                                             |
| ` String`                                                                                                                | ` `[toString](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#toString())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Constants

### CONNECTION_STATE_CONNECTED

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int CONNECTION_STATE_CONNECTED
```

A connection state indicating the route is connected.

<br />

**See also:**

- [getConnectionState()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getConnectionState())

Constant Value: 2 (0x00000002)  

### CONNECTION_STATE_CONNECTING

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int CONNECTION_STATE_CONNECTING
```

A connection state indicating the route is in the process of connecting and is not yet ready for use.

<br />

**See also:**

- [getConnectionState()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getConnectionState())

Constant Value: 1 (0x00000001)  

### CONNECTION_STATE_DISCONNECTED

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int CONNECTION_STATE_DISCONNECTED
```

The default connection state indicating the route is disconnected.

<br />

**See also:**

- [getConnectionState()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getConnectionState())

Constant Value: 0 (0x00000000)  

### DEVICE_TYPE_SPEAKER

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int DEVICE_TYPE_SPEAKER
```

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

<br />

**See also:**

- [getDeviceType()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getDeviceType())

Constant Value: 2 (0x00000002)  

### DEVICE_TYPE_TV

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int DEVICE_TYPE_TV
```

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

<br />

**See also:**

- [getDeviceType()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getDeviceType())

Constant Value: 1 (0x00000001)  

### PLAYBACK_TYPE_LOCAL

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int PLAYBACK_TYPE_LOCAL
```

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

**See also:**

- [getPlaybackType()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getPlaybackType())

Constant Value: 0 (0x00000000)  

### PLAYBACK_TYPE_REMOTE

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int PLAYBACK_TYPE_REMOTE
```

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

**See also:**

- [getPlaybackType()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getPlaybackType())

Constant Value: 1 (0x00000001)  

### PLAYBACK_VOLUME_FIXED

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int PLAYBACK_VOLUME_FIXED
```

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

**See also:**

- [getVolumeHandling()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getVolumeHandling())

Constant Value: 0 (0x00000000)  

### PLAYBACK_VOLUME_VARIABLE

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int PLAYBACK_VOLUME_VARIABLE
```

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

<br />

**See also:**

- [getVolumeHandling()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getVolumeHandling())

Constant Value: 1 (0x00000001)

## Public methods

### canDisconnect

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean canDisconnect ()
```

Gets whether this route supports disconnecting without interrupting playback.

<br />

|                                             Returns                                             ||
|-----------|--------------------------------------------------------------------------------------|
| `boolean` | True if this route can disconnect without stopping playback, false otherwise. <br /> |

### getConnectionState

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getConnectionState ()
```

Gets the connection state of the route.

<br />

|                                                                                                                                                                                                                                                   Returns                                                                                                                                                                                                                                                    ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The connection state of this route:[CONNECTION_STATE_DISCONNECTED](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#CONNECTION_STATE_DISCONNECTED),[CONNECTION_STATE_CONNECTING](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#CONNECTION_STATE_CONNECTING), or[CONNECTION_STATE_CONNECTED](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#CONNECTION_STATE_CONNECTED). <br /> |

### getControlFilters

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
List<IntentFilter> getControlFilters ()
```

Gets a list of[media control intent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)filters that describe the capabilities of this route and the media control actions that it supports.

<br />

|                                                                                                 Returns                                                                                                 ||
|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------|
| `List<`[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)`>` | A list of intent filters that specifies the media control intents that this route supports. <br /> |

**See also:**

- [MediaControlIntent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)
- [supportsControlCategory(String)](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#supportsControlCategory(java.lang.String))
- [supportsControlRequest(Intent)](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#supportsControlRequest(android.content.Intent))  

### getDescription

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String 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 />

<br />

|                             Returns                             ||
|----------|-------------------------------------------------------|
| `String` | The description of the route, or null if none. <br /> |

### getDeviceType

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getDeviceType ()
```

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

<br />

|                                                                                                                                                               Returns                                                                                                                                                                ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The type of the receiver device associated with this route:[DEVICE_TYPE_TV](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#DEVICE_TYPE_TV)or[DEVICE_TYPE_SPEAKER](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#DEVICE_TYPE_SPEAKER). <br /> |

### getExtras

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Bundle getExtras ()
```

Gets a collection of extra properties about this route that were supplied by its media route provider, or null if none.

<br />

|                                     Returns                                      ||
|--------------------------------------------------------------------------|--------|
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html) | <br /> |

### getIconUri

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Uri getIconUri ()
```

Gets the URI of the icon representing this route.

This icon will be used in picker UIs if available.

<br />

<br />

|                                                                  Returns                                                                  ||
|---------------------------------------------------------------------|----------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html) | The URI of the icon representing this route, or null if none. <br /> |

### getId

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String getId ()
```

Gets the unique id of the route.

The route unique id functions as a stable identifier by which the route is known. For example, an application can use this id as a token to remember the selected route across restarts or to communicate its identity to a service.

<br />

<br />

|                         Returns                          ||
|----------|------------------------------------------------|
| `String` | The unique id of the route, never null. <br /> |

### getName

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
String 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 />

<br />

|                                                                 Returns                                                                 ||
|----------|-------------------------------------------------------------------------------------------------------------------------------|
| `String` | The user-visible name of a media route. This is the string presented to users who may select this as the active route. <br /> |

### getPlaybackStream

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getPlaybackStream ()
```

Gets the audio stream over which the playback associated with this route is performed.

<br />

|                                          Returns                                          ||
|-------|------------------------------------------------------------------------------------|
| `int` | The stream over which the playback associated with this route is performed. <br /> |

### getPlaybackType

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getPlaybackType ()
```

Gets the type of playback associated with this route.

<br />

|                                                                                                                                                                Returns                                                                                                                                                                ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | The type of playback associated with this route:[PLAYBACK_TYPE_LOCAL](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_LOCAL)or[PLAYBACK_TYPE_REMOTE](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#PLAYBACK_TYPE_REMOTE). <br /> |

### getPresentationDisplay

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
Display getPresentationDisplay ()
```

Gets the[Display](https://developer.android.com/reference/android/view/Display.html)that should be used by the application to show a[Presentation](https://developer.android.com/reference/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[onRoutePresentationDisplayChanged(MediaRouter, MediaRouter.RouteInfo)](https://developer.android.com/reference/android/support/v7/media/MediaRouter.Callback#onRoutePresentationDisplayChanged(android.support.v7.media.MediaRouter, android.support.v7.media.MediaRouter.RouteInfo))callback and show or dismiss its[Presentation](https://developer.android.com/reference/android/app/Presentation.html)accordingly when the display becomes available or is removed.

This method only makes sense for[live video](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#CATEGORY_LIVE_VIDEO)routes.

<br />

<br />

|                                                                                   Returns                                                                                   ||
|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [Display](https://developer.android.com/reference/android/view/Display.html) | The preferred presentation display to use when this route is selected or null if none. <br /> |

**See also:**

- [CATEGORY_LIVE_VIDEO](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#CATEGORY_LIVE_VIDEO)
- [Presentation](https://developer.android.com/https://developer.android.com/reference/android/app/Presentation)  

### getProvider

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
MediaRouter.ProviderInfo getProvider ()
```

Gets information about the provider of this media route.

<br />

|                                                            Returns                                                            ||
|-----------------------------------------------------------------------------------------------------------------------|--------|
| [MediaRouter.ProviderInfo](https://developer.android.com/reference/android/support/v7/media/MediaRouter.ProviderInfo) | <br /> |

### getSettingsIntent

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
IntentSender getSettingsIntent ()
```

Gets an intent sender for launching a settings activity for this route.

<br />

|                                              Returns                                              ||
|-------------------------------------------------------------------------------------------|--------|
| [IntentSender](https://developer.android.com/reference/android/content/IntentSender.html) | <br /> |

### getVolume

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getVolume ()
```

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

<br />

|                                         Returns                                         ||
|-------|----------------------------------------------------------------------------------|
| `int` | The volume at which the playback associated with this route is performed. <br /> |

### getVolumeHandling

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getVolumeHandling ()
```

Gets information about how volume is handled on the route.

<br />

|                                                                                                                                                               Returns                                                                                                                                                                ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | How volume is handled on the route:[PLAYBACK_VOLUME_FIXED](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_FIXED)or[PLAYBACK_VOLUME_VARIABLE](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#PLAYBACK_VOLUME_VARIABLE). <br /> |

### getVolumeMax

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
int getVolumeMax ()
```

Gets the maximum volume at which the playback associated with this route is performed.

<br />

|                                             Returns                                             ||
|-------|------------------------------------------------------------------------------------------|
| `int` | The maximum volume at which the playback associated with this route is performed. <br /> |

### isBluetooth

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isBluetooth ()
```

Returns true if this route is a bluetooth route.

<br />

|                          Returns                           ||
|-----------|-------------------------------------------------|
| `boolean` | True if this route is a bluetooth route. <br /> |

**See also:**

- [getBluetoothRoute()](https://developer.android.com/reference/android/support/v7/media/MediaRouter#getBluetoothRoute())  

### isConnecting

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isConnecting ()
```

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

<br />

|                                Returns                                ||
|-----------|------------------------------------------------------------|
| `boolean` | True if this route is in the process of connecting. <br /> |

### isDefault

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isDefault ()
```

Returns true if this route is the default route.

<br />

|                          Returns                           ||
|-----------|-------------------------------------------------|
| `boolean` | True if this route is the default route. <br /> |

**See also:**

- [getDefaultRoute()](https://developer.android.com/reference/android/support/v7/media/MediaRouter#getDefaultRoute())  

### isDeviceSpeaker

added in[version 25.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isDeviceSpeaker ()
```

Returns true if this route is the default route and the device speaker.

<br />

|                                      Returns                                      ||
|-----------|------------------------------------------------------------------------|
| `boolean` | True if this route is the default route and the device speaker. <br /> |

### isEnabled

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isEnabled ()
```

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

<br />

|                     Returns                      ||
|-----------|---------------------------------------|
| `boolean` | True if this route is enabled. <br /> |

### isSelected

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isSelected ()
```

Returns true if this route is currently selected.

<br />

|                           Returns                           ||
|-----------|--------------------------------------------------|
| `boolean` | True if this route is currently selected. <br /> |

**See also:**

- [getSelectedRoute()](https://developer.android.com/reference/android/support/v7/media/MediaRouter#getSelectedRoute())  

### matchesSelector

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean matchesSelector (MediaRouteSelector selector)
```

Returns true if the route supports at least one of the capabilities described by a media route selector.

<br />

|                                           Parameters                                            ||
|------------|-------------------------------------------------------------------------------------|
| `selector` | `MediaRouteSelector`: The selector that specifies the capabilities to check. <br /> |

|                                                       Returns                                                        ||
|-----------|-----------------------------------------------------------------------------------------------------------|
| `boolean` | True if the route supports at least one of the capabilities described in the media route selector. <br /> |

### requestSetVolume

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void requestSetVolume (int volume)
```

Requests a volume change for this route asynchronously.

This function may only be called on a selected route. It will have no effect if the route is currently unselected.

<br />

<br />

|                                                                                     Parameters                                                                                     ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `volume` | `int`: The new volume value between 0 and[getVolumeMax()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getVolumeMax()). <br /> |

### requestUpdateVolume

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void requestUpdateVolume (int delta)
```

Requests an incremental volume update for this route asynchronously.

This function may only be called on a selected route. It will have no effect if the route is currently unselected.

<br />

<br />

|                           Parameters                           ||
|---------|-------------------------------------------------------|
| `delta` | `int`: The delta to add to the current volume. <br /> |

### select

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void select ()
```

Selects this media route.

<br />

### sendControlRequest

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void sendControlRequest (Intent intent, 
                MediaRouter.ControlRequestCallback callback)
```

Sends a[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)request to be performed asynchronously by the route's destination.

Media control requests are used to request the route to perform actions such as starting remote playback of a media item.

This function may only be called on a selected route. Control requests sent to unselected routes will fail.

<br />

<br />

|                                                                                                                                   Parameters                                                                                                                                   ||
|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `intent`   | `Intent`: A[media control intent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent). <br />                                                                                                                                     |
| `callback` | `MediaRouter.ControlRequestCallback`: A[MediaRouter.ControlRequestCallback](https://developer.android.com/reference/android/support/v7/media/MediaRouter.ControlRequestCallback)to invoke with the result of the request, or null if no result is required. <br /> |

**See also:**

- [MediaControlIntent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)  

### supportsControlAction

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean supportsControlAction (String category, 
                String action)
```

Returns true if the route supports the specified[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)category and action.

Media control actions describe specific requests that an application can ask a route to perform.

<br />

<br />

|                                                                                                                                                                                                                                                                                               Parameters                                                                                                                                                                                                                                                                                                ||
|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `category` | `String`: A[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)category such as[CATEGORY_LIVE_AUDIO](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#CATEGORY_LIVE_AUDIO),[CATEGORY_LIVE_VIDEO](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#CATEGORY_LIVE_VIDEO),[CATEGORY_REMOTE_PLAYBACK](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#CATEGORY_REMOTE_PLAYBACK), or a provider-defined media control category. <br /> |
| `action`   | `String`: A[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)action such as[ACTION_PLAY](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#ACTION_PLAY). <br />                                                                                                                                                                                                                                                                                                                                         |

|                                  Returns                                  ||
|-----------|----------------------------------------------------------------|
| `boolean` | True if the route supports the specified intent action. <br /> |

**See also:**

- [MediaControlIntent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)
- [getControlFilters()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getControlFilters())  

### supportsControlCategory

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean supportsControlCategory (String category)
```

Returns true if the route supports the specified[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)category.

Media control categories describe the capabilities of this route such as whether it supports live audio streaming or remote playback.

<br />

<br />

|                                                                                                                                                                                                                                                                                               Parameters                                                                                                                                                                                                                                                                                                ||
|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `category` | `String`: A[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)category such as[CATEGORY_LIVE_AUDIO](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#CATEGORY_LIVE_AUDIO),[CATEGORY_LIVE_VIDEO](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#CATEGORY_LIVE_VIDEO),[CATEGORY_REMOTE_PLAYBACK](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent#CATEGORY_REMOTE_PLAYBACK), or a provider-defined media control category. <br /> |

|                                   Returns                                   ||
|-----------|------------------------------------------------------------------|
| `boolean` | True if the route supports the specified intent category. <br /> |

**See also:**

- [MediaControlIntent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)
- [getControlFilters()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getControlFilters())  

### supportsControlRequest

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean supportsControlRequest (Intent intent)
```

Returns true if the route supports the specified[media control](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)request.

Media control requests are used to request the route to perform actions such as starting remote playback of a media item.

<br />

<br />

|                                                                Parameters                                                                ||
|----------|--------------------------------------------------------------------------------------------------------------------------------|
| `intent` | `Intent`: A[media control intent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent). <br /> |

|                               Returns                                ||
|-----------|-----------------------------------------------------------|
| `boolean` | True if the route can handle the specified intent. <br /> |

**See also:**

- [MediaControlIntent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)
- [getControlFilters()](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo#getControlFilters())  

### toString

```
String toString ()
```

<br />

<br />

|     Returns      ||
|----------|--------|
| `String` | <br /> |

-

  ## Interfaces

  - [RemotePlaybackClient.OnMessageReceivedListener](https://developer.android.com/reference/android/support/v7/media/RemotePlaybackClient.OnMessageReceivedListener)
-

  ## Classes

  - [MediaControlIntent](https://developer.android.com/reference/android/support/v7/media/MediaControlIntent)
  - [MediaItemMetadata](https://developer.android.com/reference/android/support/v7/media/MediaItemMetadata)
  - [MediaItemStatus](https://developer.android.com/reference/android/support/v7/media/MediaItemStatus)
  - [MediaItemStatus.Builder](https://developer.android.com/reference/android/support/v7/media/MediaItemStatus.Builder)
  - [MediaRouteDescriptor](https://developer.android.com/reference/android/support/v7/media/MediaRouteDescriptor)
  - [MediaRouteDescriptor.Builder](https://developer.android.com/reference/android/support/v7/media/MediaRouteDescriptor.Builder)
  - [MediaRouteDiscoveryRequest](https://developer.android.com/reference/android/support/v7/media/MediaRouteDiscoveryRequest)
  - [MediaRouteProvider](https://developer.android.com/reference/android/support/v7/media/MediaRouteProvider)
  - [MediaRouteProvider.Callback](https://developer.android.com/reference/android/support/v7/media/MediaRouteProvider.Callback)
  - [MediaRouteProvider.ProviderMetadata](https://developer.android.com/reference/android/support/v7/media/MediaRouteProvider.ProviderMetadata)
  - [MediaRouteProvider.RouteController](https://developer.android.com/reference/android/support/v7/media/MediaRouteProvider.RouteController)
  - [MediaRouteProviderDescriptor](https://developer.android.com/reference/android/support/v7/media/MediaRouteProviderDescriptor)
  - [MediaRouteProviderDescriptor.Builder](https://developer.android.com/reference/android/support/v7/media/MediaRouteProviderDescriptor.Builder)
  - [MediaRouteProviderService](https://developer.android.com/reference/android/support/v7/media/MediaRouteProviderService)
  - [MediaRouter](https://developer.android.com/reference/android/support/v7/media/MediaRouter)
  - [MediaRouter.Callback](https://developer.android.com/reference/android/support/v7/media/MediaRouter.Callback)
  - [MediaRouter.ControlRequestCallback](https://developer.android.com/reference/android/support/v7/media/MediaRouter.ControlRequestCallback)
  - [MediaRouter.ProviderInfo](https://developer.android.com/reference/android/support/v7/media/MediaRouter.ProviderInfo)
  - [MediaRouter.RouteInfo](https://developer.android.com/reference/android/support/v7/media/MediaRouter.RouteInfo)
  - [MediaRouteSelector](https://developer.android.com/reference/android/support/v7/media/MediaRouteSelector)
  - [MediaRouteSelector.Builder](https://developer.android.com/reference/android/support/v7/media/MediaRouteSelector.Builder)
  - [MediaSessionStatus](https://developer.android.com/reference/android/support/v7/media/MediaSessionStatus)
  - [MediaSessionStatus.Builder](https://developer.android.com/reference/android/support/v7/media/MediaSessionStatus.Builder)
  - [RemotePlaybackClient](https://developer.android.com/reference/android/support/v7/media/RemotePlaybackClient)
  - [RemotePlaybackClient.ActionCallback](https://developer.android.com/reference/android/support/v7/media/RemotePlaybackClient.ActionCallback)
  - [RemotePlaybackClient.ItemActionCallback](https://developer.android.com/reference/android/support/v7/media/RemotePlaybackClient.ItemActionCallback)
  - [RemotePlaybackClient.SessionActionCallback](https://developer.android.com/reference/android/support/v7/media/RemotePlaybackClient.SessionActionCallback)
  - [RemotePlaybackClient.StatusCallback](https://developer.android.com/reference/android/support/v7/media/RemotePlaybackClient.StatusCallback)