MediaRouteProviderDescriptor.Builder


public final class MediaRouteProviderDescriptor.Builder


Builder for MediaRouteProviderDescriptor.

Summary

Public constructors

Creates an empty media route provider descriptor builder.

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

Public constructors

Builder

Added in 1.1.0
public Builder()

Creates an empty media route provider descriptor builder.

Builder

Added in 1.1.0
public Builder(@NonNull MediaRouteProviderDescriptor descriptor)

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

Public methods

addRoute

Added in 1.1.0
public @NonNull MediaRouteProviderDescriptor.Builder addRoute(@NonNull MediaRouteDescriptor route)

Adds a route.

addRoutes

Added in 1.1.0
public @NonNull MediaRouteProviderDescriptor.Builder addRoutes(@NonNull Collection<MediaRouteDescriptor> routes)

Adds a list of routes.

setSupportsDynamicGroupRoute

Added in 1.1.0
public @NonNull MediaRouteProviderDescriptor.Builder setSupportsDynamicGroupRoute(boolean value)

Sets if this provider supports dynamic group route.