Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

MediaRouteSelector.Builder

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

Class Overview

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 media control categories to the builder.
MediaRouteSelector.Builder addControlCategory ( String category)
Adds a media control category to the builder.
MediaRouteSelector.Builder addSelector ( MediaRouteSelector selector)
Adds the contents of an existing media route selector to the builder.
MediaRouteSelector build ()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaRouteSelector.Builder ()

Creates an empty media route selector builder.

public MediaRouteSelector.Builder ( MediaRouteSelector selector)

Creates a media route selector descriptor builder whose initial contents are copied from an existing selector.

Public Methods

)">

public MediaRouteSelector.Builder addControlCategories ( Collection < String > categories)

Adds a list of media control categories to the builder.

Parameters
categories The list categories to add to the set of desired capabilities, such as CATEGORY_LIVE_AUDIO .
Returns
  • The builder instance for chaining.

public MediaRouteSelector.Builder addControlCategory ( String category)

Adds a media control category to the builder.

Parameters
category The category to add to the set of desired capabilities, such as CATEGORY_LIVE_AUDIO .
Returns
  • The builder instance for chaining.

public MediaRouteSelector.Builder addSelector ( MediaRouteSelector selector)

Adds the contents of an existing media route selector to the builder.

Parameters
selector The media route selector whose contents are to be added.
Returns
  • The builder instance for chaining.

public MediaRouteSelector build ()