public final class

RouteListingPreference.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.mediarouter.media.RouteListingPreference.Builder

Overview

Builder for RouteListingPreference.

Summary

Constructors
publicBuilder()

Creates a new instance with default values (documented in the setters).

Methods
public RouteListingPreferencebuild()

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

public RouteListingPreference.BuildersetItems(java.util.List<RouteListingPreference.Item> items)

See RouteListingPreference.getItems()

public RouteListingPreference.BuildersetLinkedItemComponentName(ComponentName linkedItemComponentName)

See RouteListingPreference.getLinkedItemComponentName().

public RouteListingPreference.BuildersetSystemOrderingEnabled(boolean systemOrderingEnabled)

See RouteListingPreference.isSystemOrderingEnabled()

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

Constructors

public Builder()

Creates a new instance with default values (documented in the setters).

Methods

public RouteListingPreference.Builder setItems(java.util.List<RouteListingPreference.Item> items)

See RouteListingPreference.getItems()

The default value is an empty list.

public RouteListingPreference.Builder setSystemOrderingEnabled(boolean systemOrderingEnabled)

See RouteListingPreference.isSystemOrderingEnabled()

The default value is true.

public RouteListingPreference.Builder setLinkedItemComponentName(ComponentName linkedItemComponentName)

See RouteListingPreference.getLinkedItemComponentName().

The default value is null.

public RouteListingPreference build()

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