Skip to content

Most visited

Recently visited

navigation

MediaRouteProviderDescriptor.Builder

public static final class MediaRouteProviderDescriptor.Builder
extends Object

java.lang.Object
   ↳ android.support.v7.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

From class java.lang.Object

Public constructors

MediaRouteProviderDescriptor.Builder

added in version 22.0.0
MediaRouteProviderDescriptor.Builder ()

Creates an empty media route provider descriptor builder.

MediaRouteProviderDescriptor.Builder

added in version 22.0.0
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

added in version 22.0.0
MediaRouteProviderDescriptor.Builder addRoute (MediaRouteDescriptor route)

Adds a route.

Parameters
route MediaRouteDescriptor

Returns
MediaRouteProviderDescriptor.Builder

addRoutes

added in version 22.0.0
MediaRouteProviderDescriptor.Builder addRoutes (Collection<MediaRouteDescriptor> routes)

Adds a list of routes.

Parameters
routes Collection

Returns
MediaRouteProviderDescriptor.Builder

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)