java.lang.Object | |
↳ | android.support.v7.media.MediaRouteDescriptor.Builder |
Builder for media route descriptors
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a media route descriptor builder.
| |||||||||||
Creates a media route descriptor builder whose initial contents are
copied from an existing descriptor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a
media control intent filter for the route.
| |||||||||||
Adds a list of
media control intent filters for the route.
| |||||||||||
Builds the
media route descriptor .
| |||||||||||
Sets whether the route can be disconnected without stopping playback.
| |||||||||||
Sets whether the route is in the process of connecting and is not yet
ready for use.
| |||||||||||
Sets the user-visible description of the route.
| |||||||||||
Sets whether the route is enabled.
| |||||||||||
Sets a bundle of extras for this route descriptor.
| |||||||||||
Sets the unique id of the route.
| |||||||||||
Sets the user-visible name of the route.
| |||||||||||
Sets the route's playback stream.
| |||||||||||
Sets the route's playback type.
| |||||||||||
Sets the route's presentation display id, or -1 if none.
| |||||||||||
Sets an intent sender for launching the settings activity for this
route.
| |||||||||||
Sets the route's current volume, or 0 if unknown.
| |||||||||||
Sets the route's volume handling.
| |||||||||||
Sets the route's maximum volume, or 0 if unknown.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a media route descriptor builder.
id | The unique id of the route. |
---|---|
name | The user-visible name of the route. |
Creates a media route descriptor builder whose initial contents are copied from an existing descriptor.
Adds a media control intent
filter for the route.
Adds a list of media control intent
filters for the route.
Sets whether the route can be disconnected without stopping playback.
Sets whether the route is in the process of connecting and is not yet ready for use.
Sets 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.
Sets whether the route is enabled.
Disabled routes represent routes that a route provider knows about, such as paired Wifi Display receivers, but that are not currently available for use.
Sets a bundle of extras for this route descriptor. The extras will be ignored by the media router but they may be used by applications.
Sets 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.
Sets 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.
Sets the route's playback stream.
Sets the route's playback type.
Sets the route's presentation display id, or -1 if none.
Sets an intent sender for launching the settings activity for this route.
Sets the route's current volume, or 0 if unknown.
Sets the route's volume handling.
Sets the route's maximum volume, or 0 if unknown.