java.lang.Object | ||
↳ | android.media.MediaRouter.RouteInfo | |
↳ | android.media.MediaRouter.UserRouteInfo |
Information about a route that the application may define and modify.
A user route defaults to
PLAYBACK_TYPE_REMOTE
and
PLAYBACK_VOLUME_FIXED
.
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.media.MediaRouter.RouteInfo
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Retrieve the RemoteControlClient associated with this route, if one has been set.
|
||||||||||
|
Request a volume change for this route.
|
||||||||||
|
Request an incremental volume update for this route.
|
||||||||||
|
Set the user-visible description of this route.
|
||||||||||
|
Set an icon that will be used to represent this route.
|
||||||||||
|
Set an icon that will be used to represent this route.
|
||||||||||
|
Set the user-visible name of this route.
|
||||||||||
|
Set the user-visible name of this route.
|
||||||||||
|
Defines over what stream type the media is presented.
|
||||||||||
|
Defines whether playback associated with this route is "local"
(
PLAYBACK_TYPE_LOCAL
) or "remote"
(
PLAYBACK_TYPE_REMOTE
).
|
||||||||||
|
Set the RemoteControlClient responsible for reporting playback info for this
user route.
|
||||||||||
|
Set the current user-visible status for this route.
|
||||||||||
|
Defines at what volume the playback associated with this route is performed (for user
feedback purposes).
|
||||||||||
|
Set a callback to be notified of volume update requests
|
||||||||||
|
Defines whether volume for the playback associated with this route is fixed
(
PLAYBACK_VOLUME_FIXED
) or can modified
(
PLAYBACK_VOLUME_VARIABLE
).
|
||||||||||
|
Defines the maximum volume at which the playback associated with this route is performed
(for user feedback purposes).
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.media.MediaRouter.RouteInfo
|
|||||||||||
From class
java.lang.Object
|
Retrieve the RemoteControlClient associated with this route, if one has been set.
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 the user-visible description of this 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.
description | The description of the route, or null if none. |
---|
Set an icon that will be used to represent this route. The system may use this icon in picker UIs or similar.
icon | icon drawable to use to represent this route |
---|
Set an icon that will be used to represent this route. The system may use this icon in picker UIs or similar.
resId | Resource ID of an icon drawable to use to represent this route |
---|
Set the user-visible name of this route.
The route name identifies the destination represented by the route. It may be a user-supplied name, an alias, or device serial number.
resId | Resource ID of the name to display to the user to describe this route |
---|
Set the user-visible name of this route.
name | Name to display to the user to describe this route |
---|
Defines over what stream type the media is presented.
Defines whether playback associated with this route is "local"
(
PLAYBACK_TYPE_LOCAL
) or "remote"
(
PLAYBACK_TYPE_REMOTE
).
Set the RemoteControlClient responsible for reporting playback info for this user route.
If this route manages remote playback, the data exposed by this RemoteControlClient will be used to reflect and update information such as route volume info in related UIs.
The RemoteControlClient must have been previously registered with
registerRemoteControlClient(RemoteControlClient)
.
rcc | RemoteControlClient associated with this route |
---|
Set the current user-visible status for this route.
status | Status to display to the user to describe what the endpoint of this route is currently doing |
---|
Defines at what volume the playback associated with this route is performed (for user feedback purposes). This information is only used when the playback is not local.
Set a callback to be notified of volume update requests
Defines whether volume for the playback associated with this route is fixed
(
PLAYBACK_VOLUME_FIXED
) or can modified
(
PLAYBACK_VOLUME_VARIABLE
).
Defines the maximum volume at which the playback associated with this route is performed (for user feedback purposes). This information is only used when the playback is not local.