Builder

class Builder
kotlin.Any
   ↳ androidx.mediarouter.media.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 methods
MediaRouteProviderDescriptor.Builder!

Adds a list of routes.

MediaRouteProviderDescriptor.Builder!

Adds a route.

MediaRouteProviderDescriptor.Builder!

Sets if this provider supports dynamic group route.

MediaRouteProviderDescriptor!

Builds the MediaRouteProviderDescriptor.

Public constructors

<init>

Builder()

Creates an empty media route provider descriptor builder.

<init>

Builder(descriptor: MediaRouteProviderDescriptor!)

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

Public methods

addRoutes

fun addRoutes(routes: MutableCollection<MediaRouteDescriptor!>!): MediaRouteProviderDescriptor.Builder!

Adds a list of routes.

addRoute

fun addRoute(route: MediaRouteDescriptor!): MediaRouteProviderDescriptor.Builder!

Adds a route.

setSupportsDynamicGroupRoute

fun setSupportsDynamicGroupRoute(value: Boolean): MediaRouteProviderDescriptor.Builder!

Sets if this provider supports dynamic group route.