public final class

MediaRouteProviderDescriptor.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.mediarouter.media.MediaRouteProviderDescriptor.Builder

Overview

Builder for MediaRouteProviderDescriptor.

Summary

Constructors
publicBuilder()

Creates an empty media route provider descriptor builder.

publicBuilder(MediaRouteProviderDescriptor descriptor)

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

Methods
public MediaRouteProviderDescriptor.BuilderaddRoute(MediaRouteDescriptor route)

Adds a route.

public MediaRouteProviderDescriptor.BuilderaddRoutes(java.util.Collection<MediaRouteDescriptor> routes)

Adds a list of routes.

public MediaRouteProviderDescriptorbuild()

Builds the MediaRouteProviderDescriptor.

public MediaRouteProviderDescriptor.BuildersetSupportsDynamicGroupRoute(boolean value)

Sets if this provider supports dynamic group route.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Creates an empty media route provider descriptor builder.

public Builder(MediaRouteProviderDescriptor descriptor)

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

Methods

Adds a route.

public MediaRouteProviderDescriptor.Builder addRoutes(java.util.Collection<MediaRouteDescriptor> routes)

Adds a list of routes.

public MediaRouteProviderDescriptor.Builder setSupportsDynamicGroupRoute(boolean value)

Sets if this provider supports dynamic group route.

Builds the MediaRouteProviderDescriptor.