java.lang.Object | ||
↳ | android.media.MediaRouter.RouteInfo | |
↳ | android.media.MediaRouter.RouteGroup |
Information about a route that consists of multiple other routes in a group.
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.media.MediaRouter.RouteInfo
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Add a route to this group.
|
||||||||||
|
Add a route to this group before the specified index.
|
||||||||||
|
Return the route in this group at the specified index
|
||||||||||
|
|
||||||||||
|
Remove the route at the specified index from this group.
|
||||||||||
|
Remove a route from this group.
|
||||||||||
|
Request a volume change for this route.
|
||||||||||
|
Request an incremental volume update for this route.
|
||||||||||
|
Set an icon that will be used to represent this group.
|
||||||||||
|
Set an icon that will be used to represent this group.
|
||||||||||
|
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.media.MediaRouter.RouteInfo
|
|||||||||||
From class
java.lang.Object
|
Add a route to this group. The route must not currently belong to another group.
route | route to add to this group |
---|
Add a route to this group before the specified index.
route | route to add |
---|---|
insertAt | insert the new route before this index |
Return the route in this group at the specified index
index | Index to fetch |
---|
Remove the route at the specified index from this group.
index | index of the route to remove |
---|
Remove a route from this group.
route | route to remove |
---|
Request a volume change for this route.
volume | value between 0 and getVolumeMax |
---|
Request an incremental volume update for this route.
direction | Delta to apply to the current volume |
---|
Set an icon that will be used to represent this group. The system may use this icon in picker UIs or similar.
icon | icon drawable to use to represent this group |
---|
Set an icon that will be used to represent this group. The system may use this icon in picker UIs or similar.
resId | Resource ID of an icon drawable to use to represent this group |
---|
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.