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 | 
|---|
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 | |
|---|---|
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.
| Returns | |
|---|---|
String | 
        a string representation of the object. |