Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

MediaRouteProviderDescriptor.Builder

public static final class MediaRouteProviderDescriptor.Builder
extends Object

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


Builder for MediaRouteProviderDescriptor.

Summary

Public constructors

Builder()

Creates an empty media route provider descriptor builder.

Builder(MediaRouteProviderDescriptor descriptor)

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

Public methods

MediaRouteProviderDescriptor.Builder addRoute(MediaRouteDescriptor route)

Adds a route.

MediaRouteProviderDescriptor.Builder addRoutes(Collection<MediaRouteDescriptor> routes)

Adds a list of routes.

MediaRouteProviderDescriptor build()

Builds the MediaRouteProviderDescriptor.

MediaRouteProviderDescriptor.Builder setSupportsDynamicGroupRoute(boolean value)

Sets if this provider supports dynamic group route.

Inherited methods

Public constructors

Builder

public Builder ()

Creates an empty media route provider descriptor builder.

Builder

public Builder (MediaRouteProviderDescriptor descriptor)

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

Parameters
descriptor MediaRouteProviderDescriptor

Public methods

addRoute

public MediaRouteProviderDescriptor.Builder addRoute (MediaRouteDescriptor route)

Adds a route.

Parameters
route MediaRouteDescriptor

Returns
MediaRouteProviderDescriptor.Builder

addRoutes

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

Adds a list of routes.

Parameters
routes Collection

Returns
MediaRouteProviderDescriptor.Builder

setSupportsDynamicGroupRoute

public MediaRouteProviderDescriptor.Builder setSupportsDynamicGroupRoute (boolean value)

Sets if this provider supports dynamic group route.

Parameters
value boolean

Returns
MediaRouteProviderDescriptor.Builder