MediaRouteSelector.Builder

public static final class MediaRouteSelector.Builder
extends Object

java.lang.Object
   ↳ androidx.mediarouter.media.MediaRouteSelector.Builder


Builder for media route selectors.

Summary

Public constructors

Builder()

Creates an empty media route selector builder.

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()

Builds the media route selector.

Inherited methods

Public constructors

Builder

public Builder ()</