public final class

RouteListingPreference.Item.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.mediarouter.media.RouteListingPreference.Item.Builder

Overview

Builder for RouteListingPreference.Item.

Summary

Constructors
publicBuilder(java.lang.String routeId)

Constructor.

Methods
public RouteListingPreference.Itembuild()

Creates and returns a new RouteListingPreference.Item with the given parameters.

public RouteListingPreference.Item.BuildersetCustomSubtextMessage(java.lang.CharSequence customSubtextMessage)

See RouteListingPreference.Item.getCustomSubtextMessage().

public RouteListingPreference.Item.BuildersetFlags(int flags)

See RouteListingPreference.Item.getFlags().

public RouteListingPreference.Item.BuildersetSelectionBehavior(int selectionBehavior)

See RouteListingPreference.Item.getSelectionBehavior().

public RouteListingPreference.Item.BuildersetSubText(int subText)

See RouteListingPreference.Item.getSubText().

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.String routeId)

Constructor.

Parameters:

routeId: See RouteListingPreference.Item.getRouteId().

Methods

public RouteListingPreference.Item.Builder setSelectionBehavior(int selectionBehavior)

See RouteListingPreference.Item.getSelectionBehavior().

The default value is RouteListingPreference.ACTION_TRANSFER_MEDIA.

public RouteListingPreference.Item.Builder setFlags(int flags)

See RouteListingPreference.Item.getFlags().

The default value is zero (no flags).

public RouteListingPreference.Item.Builder setSubText(int subText)

See RouteListingPreference.Item.getSubText().

The default value is RouteListingPreference.Item.SUBTEXT_NONE.

public RouteListingPreference.Item.Builder setCustomSubtextMessage(java.lang.CharSequence customSubtextMessage)

See RouteListingPreference.Item.getCustomSubtextMessage().

The default value is null.

Creates and returns a new RouteListingPreference.Item with the given parameters.