MediaRouteSelector.Builder


class MediaRouteSelector.Builder


Builder for media route selectors.

Summary

Public constructors

Creates an empty media route selector builder.

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

Public functions

MediaRouteSelector.Builder

Adds a list of media control categories to the builder.

MediaRouteSelector.Builder

Adds a media control category to the builder.

MediaRouteSelector.Builder

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

MediaRouteSelector

Builds the media route selector.

Public constructors

Builder

Added in 1.1.0
Builder()

Creates an empty media route selector builder.

Builder

Added in 1.1.0
Builder(selector: MediaRouteSelector)

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

Public functions

addControlCategories

Added in 1.1.0
fun addControlCategories(categories: (Mutable)Collection<String!>): MediaRouteSelector.Builder

Adds a list of media control categories to the builder.

Parameters
categories: (Mutable)Collection<String!>

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

Added in 1.1.0
fun addControlCategory(category: String): MediaRouteSelector.Builder

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

Added in 1.1.0
fun addSelector(selector: MediaRouteSelector): MediaRouteSelector.Builder

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

Added in 1.1.0
fun build(): MediaRouteSelector

Builds the media route selector.