Most visited

Recently visited

MediaRouteSelector.Builder

public static final class MediaRouteSelector.Builder
extends Object

java.lang.Object
   ↳ android.support.v7.media.MediaRouteSelector.Builder


建造者为 media route selectors

Summary

Public constructors

MediaRouteSelector.Builder()

创建一个空的媒体路由选择器构建器。

MediaRouteSelector.Builder(MediaRouteSelector selector)

创建媒体路由选择器描述符构建器,其中的初始内容是从现有选择器复制的。

Public methods

MediaRouteSelector.Builder addControlCategories(Collection<String> categories)

向建造者添加一列 media control categories

MediaRouteSelector.Builder addControlCategory(String category)

向建造者添加 media control category

MediaRouteSelector.Builder addSelector(MediaRouteSelector selector)

将现有媒体路由选择器的内容添加到构建器。

MediaRouteSelector build()

构建 media route selector

Inherited methods

From class java.lang.Object

Public constructors

MediaRouteSelector.Builder

MediaRouteSelector.Builder ()

创建一个空的媒体路由选择器构建器。

MediaRouteSelector.Builder

MediaRouteSelector.Builder (MediaRouteSelector selector)

创建媒体路由选择器描述符构建器,其中的初始内容是从现有选择器复制的。

Parameters
selector MediaRouteSelector

Public methods

addControlCategories

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.

addControlCategory

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.

addSelector

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.

build

MediaRouteSelector build ()

构建 media route selector

Returns
MediaRouteSelector

Hooray!