belongs to Maven artifact com.android.support:mediarouter-v7:28.0.0-alpha1
MediaRouteSelector.Builder
public
static
final
class
MediaRouteSelector.Builder
extends Object
java.lang.Object | |
↳ | android.support.v7.media.MediaRouteSelector.Builder |
Builder for media route selectors
.
Summary
Public constructors | |
---|---|
MediaRouteSelector.Builder()
Creates an empty media route selector builder. |
|
MediaRouteSelector.Builder(MediaRouteSelector selector)
Creates a media route selector descriptor builder whose initial contents are copied from an existing selector. |
Public methods | |
---|---|
MediaRouteSelector.Builder
|
addControlCategories(Collection<String> categories)
Adds a list of |
MediaRouteSelector.Builder
|
addControlCategory(String category)
Adds a |
MediaRouteSelector.Builder
|
addSelector(MediaRouteSelector selector)
Adds the contents of an existing media route selector to the builder. |
MediaRouteSelector
|
build()
Builds the |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
MediaRouteSelector.Builder
MediaRouteSelector.Builder ()
Creates an empty media route selector builder.
MediaRouteSelector.Builder
MediaRouteSelector.Builder (MediaRouteSelector selector)
Creates a media route selector descriptor builder whose initial contents are copied from an existing selector.
Parameters | |
---|---|
selector |
MediaRouteSelector |
Public methods
addControlCategories
MediaRouteSelector.Builder addControlCategories (Collection<String> categories)
Adds a list of media control categories
to the builder.
Parameters | |
---|---|
categories |
Collection : The list categories to add to the set of desired capabilities,
such as CATEGORY_LIVE_AUDIO . |
Returns | |
---|---|
MediaRouteSelector.Builder |
The builder instance for chaining. |
addControlCategory
MediaRouteSelector.Builder addControlCategory (String category)
Adds a media control category
to the builder.
Parameters | |
---|---|
category |
String : The category to add to the set of desired capabilities, such as
CATEGORY_LIVE_AUDIO . |
Returns | |
---|---|
MediaRouteSelector.Builder |
The builder instance for chaining. |
addSelector
MediaRouteSelector.Builder addSelector (MediaRouteSelector selector)
Adds the contents of an existing media route selector to the builder.
Parameters | |
---|---|
selector |
MediaRouteSelector : The media route selector whose contents are to be added. |
Returns | |
---|---|
MediaRouteSelector.Builder |
The builder instance for chaining. |
build
MediaRouteSelector build ()
Builds the media route selector
.
Returns | |
---|---|
MediaRouteSelector |
Interfaces
Classes
- MediaControlIntent
- MediaItemMetadata
- MediaItemStatus
- MediaItemStatus.Builder
- MediaRouteDescriptor
- MediaRouteDescriptor.Builder
- MediaRouteDiscoveryRequest
- MediaRouteProvider
- MediaRouteProvider.Callback
- MediaRouteProvider.ProviderMetadata
- MediaRouteProvider.RouteController
- MediaRouteProviderDescriptor
- MediaRouteProviderDescriptor.Builder
- MediaRouteProviderService
- MediaRouter
- MediaRouter.Callback
- MediaRouter.ControlRequestCallback
- MediaRouter.ProviderInfo
- MediaRouter.RouteInfo
- MediaRouteSelector
- MediaRouteSelector.Builder
- MediaSessionStatus
- MediaSessionStatus.Builder
- RemotePlaybackClient
- RemotePlaybackClient.ActionCallback
- RemotePlaybackClient.ItemActionCallback
- RemotePlaybackClient.SessionActionCallback
- RemotePlaybackClient.StatusCallback