# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Inherited Constants | Methods | Inherited Methods

# MediaRouter.RouteGroup

`public static class MediaRouter.RouteGroup`
`` `extends MediaRouter.RouteInfo` ``

java.lang.Object
↳ | android.media.MediaRouter.RouteInfo
| ↳ | android.media.MediaRouter.RouteGroup

Information about a route that consists of multiple other routes in a group.

## Summary

### Inherited constants
From class `android.media.MediaRouter.RouteInfo`
`int` | `DEVICE_TYPE_BLUETOOTH` A receiver device type of the route indicating the presentation of the media is happening on a bluetooth device such as a bluetooth speaker.
`int` | `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` A receiver device type of the route indicating the presentation of the media is happening on a TV.
`int` | `DEVICE_TYPE_UNKNOWN` The default receiver device type of the route indicating the type is unknown.
`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.
`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.
`int` | `PLAYBACK_VOLUME_FIXED` Playback information indicating the playback volume is fixed, i.e. it cannot be controlled from this object.
`int` | `PLAYBACK_VOLUME_VARIABLE` Playback information indicating the playback volume is variable and can be controlled from this object.

### Public methods
`void` | `addRoute(MediaRouter.RouteInfo route)` Add a route to this group.
`void` | `addRoute(MediaRouter.RouteInfo route, int insertAt)` Add a route to this group before the specified index.
`MediaRouter.RouteInfo` | `getRouteAt(int index)` Return the route in this group at the specified index
`int` | `getRouteCount()`
`void` | `removeRoute(MediaRouter.RouteInfo route)` Remove a route from this group.
`void` | `removeRoute(int index)` Remove the route at the specified index from this group.
`void` | `requestSetVolume(int volume)` Request a volume change for this route.
`void` | `requestUpdateVolume(int direction)` Request an incremental volume update for this route.
`void` | `setIconDrawable(Drawable icon)` Set an icon that will be used to represent this group.
`void` | `setIconResource(int resId)` Set an icon that will be used to represent this group.
`String` | `toString()` Returns a string representation of the object.

### Inherited methods
From class `android.media.MediaRouter.RouteInfo`
`MediaRouter.RouteCategory` | `getCategory()`
`CharSequence` | `getDescription()` Gets the user-visible description of the route.
`int` | `getDeviceType()` Gets the type of the receiver device associated with this route.
`MediaRouter.RouteGroup` | `getGroup()`
`Drawable` | `getIconDrawable()` Get the icon representing this route.
`CharSequence` | `getName(Context context)` Return the properly localized/resource user-visible name of this route.
`CharSequence` | `getName()` Gets the user-visible name of the route.
`int` | `getPlaybackStream()`
`int` | `getPlaybackType()`
`Display` | `getPresentationDisplay()` Gets the `Display` that should be used by the application to show a `Presentation` on an external display when this route is selected.
`CharSequence` | `getStatus()`
`int` | `getSupportedTypes()`
`Object` | `getTag()`
`int` | `getVolume()` Return the current volume for this route.
`int` | `getVolumeHandling()`
`int` | `getVolumeMax()`
`boolean` | `isConnecting()` Returns true if the route is in the process of connecting and is not yet ready for use.
`boolean` | `isEnabled()` Returns true if this route is enabled and may be selected.
`void` | `requestSetVolume(int volume)` Request a volume change for this route.
`void` | `requestUpdateVolume(int direction)` Request an incremental volume update for this route.
`void` | `setTag(Object tag)` Set an application-specific tag object for this route.
`String` | `toString()` Returns a string representation of the object.
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public methods

### addRoute

    public void addRoute (MediaRouter.RouteInfo route)

Add a route to this group. The route must not currently belong to another group.

Parameters
`route` | `MediaRouter.RouteInfo`: route to add to this group

### addRoute

    public void addRoute (MediaRouter.RouteInfo route,
                    int insertAt)

Add a route to this group before the specified index.

Parameters
`route` | `MediaRouter.RouteInfo`: route to add
`insertAt` | `int`: insert the new route before this index

### getRouteAt

    public MediaRouter.RouteInfo getRouteAt (int index)

Return the route in this group at the specified index

Parameters
`index` | `int`: Index to fetch

Returns
`MediaRouter.RouteInfo` | The route at index

### getRouteCount

    public int getRouteCount ()

Returns
`int` | The number of routes in this group

### removeRoute

    public void removeRoute (MediaRouter.RouteInfo route)

Remove a route from this group.

Parameters
`route` | `MediaRouter.RouteInfo`: route to remove

### removeRoute

    public void removeRoute (int index)

Remove the route at the specified index from this group.

Parameters
`index` | `int`: index of the route to remove

### requestSetVolume

    public void requestSetVolume (int volume)

Request a volume change for this route.

Parameters
`volume` | `int`: value between 0 and getVolumeMax

### requestUpdateVolume

    public void requestUpdateVolume (int direction)

Request an incremental volume update for this route.

Parameters
`direction` | `int`: Delta to apply to the current volume

### setIconDrawable

    public void setIconDrawable (Drawable icon)

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

Parameters
`icon` | `Drawable`: icon drawable to use to represent this group

### setIconResource

    public void setIconResource (int resId)

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

Parameters
`resId` | `int`: Resource ID of an icon drawable to use to represent this group

### toString

    public String toString ()

Returns a string representation of the object. In general, the `toString` method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The `toString` method for class `Object` returns a string consisting of the name of the class of which the object is an instance, the at-sign character ``@`', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

>      getClass().getName() + '@' + Integer.toHexString(hashCode())

Returns
`String` | a string representation of the object.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*