belongs to Maven artifact androidx.mediarouter:mediarouter:1.0.0-alpha4

MediaRouteProviderDescriptor.Builder

public static final class MediaRouteProviderDescriptor.Builder
extends Object

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


Builder for media route provider descriptors.

Summary

Public constructors

MediaRouteProviderDescriptor.Builder()

Creates an empty media route provider descriptor builder.

MediaRouteProviderDescriptor.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 media route provider descriptor.

Inherited methods

Public constructors

MediaRouteProviderDescriptor.Builder

public MediaRouteProviderDescriptor.Builder ()

Creates an empty media route provider descriptor builder.

MediaRouteProviderDescriptor.Builder

public MediaRouteProviderDescriptor.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