public static final class MediaRouteSelector.Builder
extends Object
java.lang.Object | |
↳ | android.support.v7.media.MediaRouteSelector.Builder |
建造者为 media route selectors
。
Public constructors |
|
---|---|
MediaRouteSelector.Builder() 创建一个空的媒体路由选择器构建器。 |
|
MediaRouteSelector.Builder(MediaRouteSelector selector) 创建媒体路由选择器描述符构建器,其中的初始内容是从现有选择器复制的。 |
Public methods |
|
---|---|
MediaRouteSelector.Builder |
addControlCategories(Collection<String> categories) 向建造者添加一列 |
MediaRouteSelector.Builder |
addControlCategory(String category) 向建造者添加 |
MediaRouteSelector.Builder |
addSelector(MediaRouteSelector selector) 将现有媒体路由选择器的内容添加到构建器。 |
MediaRouteSelector |
build() 构建 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
MediaRouteSelector.Builder ()
创建一个空的媒体路由选择器构建器。
MediaRouteSelector.Builder (MediaRouteSelector selector)
创建媒体路由选择器描述符构建器,其中的初始内容是从现有选择器复制的。
Parameters | |
---|---|
selector |
MediaRouteSelector
|
MediaRouteSelector.Builder addControlCategories (Collection<String> categories)
向建造者添加一列 media control categories
。
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. |
MediaRouteSelector.Builder addControlCategory (String category)
向建造者添加 media control category
。
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. |
MediaRouteSelector.Builder addSelector (MediaRouteSelector selector)
将现有媒体路由选择器的内容添加到构建器。
Parameters | |
---|---|
selector |
MediaRouteSelector : The media route selector whose contents are to be added. |
Returns | |
---|---|
MediaRouteSelector.Builder |
The builder instance for chaining. |