Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

Builder

class Builder
kotlin.Any
   ↳ androidx.mediarouter.media.MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder

Builder for DynamicRouteDescriptor

Summary

Public constructors

A constructor with MediaRouteDescriptor.

Copies the properties from the given DynamicRouteDescriptor

Public methods

MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor!

Builds the DynamicRouteDescriptor.

MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder!

Sets if this route can be a selected as a member of the associated dynamic group route.

MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder!

Sets if the associated dynamic group route can be transferred to this route.

MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder!

Sets if this route can be unselected.

MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder!

Sets the selection state of this route within the associated dynamic group route.

Public constructors

<init>

Builder(descriptor: MediaRouteDescriptor!)

A constructor with MediaRouteDescriptor.

<init>

Builder(dynamicRouteDescriptor: MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor!)

Copies the properties from the given DynamicRouteDescriptor

Public methods

setIsGroupable

fun setIsGroupable(value: Boolean): MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder!

Sets if this route can be a selected as a member of the associated dynamic group route.

setIsTransferable

fun setIsTransferable(value: Boolean): MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder!

Sets if the associated dynamic group route can be transferred to this route.

setIsUnselectable

fun setIsUnselectable(value: Boolean): MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder!

Sets if this route can be unselected.

setSelectionState

fun setSelectionState(state: Int): MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder!

Sets the selection state of this route within the associated dynamic group route.