| java.lang.Object | |
| ↳ | android.support.v7.media.MediaRouteDescriptor | 
Describes the properties of a route.
Each route is uniquely identified by an opaque id string. This token may take any form as long as it is unique within the media route provider.
       This object is immutable once created using a
       
        
         MediaRouteDescriptor.Builder
        
       
       instance.
      
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
          | 
        MediaRouteDescriptor.Builder | 
         Builder for
         
          
           media route descriptors
          
         
         . 
         | 
       |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
           | 
         
           
           Converts this object to a bundle for serialization.
           
          | 
        ||||||||||
| 
           | 
         
           
           Creates an instance from a bundle.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the route's
            
         
            
             media control intent
            
           
           filters.
           | 
        ||||||||||
| 
           | 
         
           
           Gets the user-visible description of the route.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets a bundle of extras for this route descriptor.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the unique id of the route.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the user-visible name of the route.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the route's playback stream.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the route's playback type.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the route's presentation display id, or -1 if none.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the route's current volume, or 0 if unknown.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the route's volume handling.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets the route's maximum volume, or 0 if unknown.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets whether the route is connecting.
           
          | 
        ||||||||||
| 
           | 
         
           
           Gets whether the route is enabled.
           
          | 
        ||||||||||
| 
           | 
         
           
           Returns true if the route descriptor has all of the required fields.
           
          | 
        ||||||||||
| 
           | 
         
           
           Returns a string containing a concise, human-readable description of this
 object.
           
          | 
        ||||||||||
| 
          
           [Expand]
          
           
           Inherited Methods
           
          | 
        |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
          
            
          
          From class
          
           java.lang.Object
          
           | 
        |||||||||||
Converts this object to a bundle for serialization.
Creates an instance from a bundle.
| bundle | The bundle, or null if none. | 
|---|
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.
Gets a bundle of extras for this route descriptor. The extras will be ignored by the media router but they may be used by applications.
Gets the unique id of the route.
The route id associated with a route descriptor functions as a stable identifier for the route and must be unique among all routes offered by the provider.
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.
Gets the route's playback stream.
Gets the route's playback type.
Gets the route's presentation display id, or -1 if none.
Gets the route's current volume, or 0 if unknown.
Gets the route's volume handling.
Gets the route's maximum volume, or 0 if unknown.
Gets whether the route is connecting.
Gets whether the route is enabled.
Returns true if the route descriptor has all of the required fields.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
          getClass().getName() + '@' + Integer.toHexString(hashCode())
         
        
        
         See
         
          Writing a useful
          
           toString
          
          method
         
         if you intend implementing your own
         
          toString
         
         method.