MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder


public final class MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder


Builder for DynamicRouteDescriptor

Summary

Public constructors

A constructor with MediaRouteDescriptor.

Copies the properties from the given DynamicRouteDescriptor

Public methods

@NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor

Builds the DynamicRouteDescriptor.

@NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder
setIsGroupable(boolean value)

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

@NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder
setIsTransferable(boolean value)

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

@NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder
setIsUnselectable(boolean value)

Sets if this route can be unselected.

@NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder
setSelectionState(int state)

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

Public constructors

Builder

Added in 1.1.0
public Builder(@NonNull MediaRouteDescriptor descriptor)

A constructor with MediaRouteDescriptor.

Builder

Added in 1.1.0
public Builder(
    @NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor dynamicRouteDescriptor
)

Copies the properties from the given DynamicRouteDescriptor

Public methods

setIsGroupable

Added in 1.1.0
public @NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder setIsGroupable(boolean value)

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

setIsTransferable

Added in 1.1.0
public @NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder setIsTransferable(boolean value)

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

setIsUnselectable

Added in 1.1.0
public @NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder setIsUnselectable(boolean value)

Sets if this route can be unselected.

setSelectionState

Added in 1.1.0
public @NonNull MediaRouteProvider.DynamicGroupRouteController.DynamicRouteDescriptor.Builder setSelectionState(int state)

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