RouteListingPreference.Builder


public static final class RouteListingPreference.Builder
extends Object

java.lang.Object
   ↳ android.media.RouteListingPreference.Builder


Builder for RouteListingPreference.

Summary

Public constructors

Builder()

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

Public methods

RouteListingPreference build()

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

RouteListingPreference.Builder setItems(List<RouteListingPreference.Item> items)

See RouteListingPreference.getItems()

The default value is an empty list.

RouteListingPreference.Builder setLinkedItemComponentName(ComponentName linkedItemComponentName)

See RouteListingPreference.getLinkedItemComponentName().

RouteListingPreference.Builder setUseSystemOrdering(boolean useSystemOrdering)

See RouteListingPreference.getUseSystemOrdering()

The default value is true.

Inherited methods

Public constructors

Builder

Added in API level 34
public Builder ()

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

Public methods

build

Added in API level 34
public RouteListingPreference build ()

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

Returns
RouteListingPreference This value cannot be null.

setItems

Added in API level 34
public RouteListingPreference.Builder setItems (List<RouteListingPreference.Item> items)

See RouteListingPreference.getItems()

The default value is an empty list.

Parameters
items List: This value cannot be null.

Returns
RouteListingPreference.Builder This value cannot be null.

setLinkedItemComponentName

Added in API level 34
public RouteListingPreference.Builder setLinkedItemComponentName (ComponentName linkedItemComponentName)

See RouteListingPreference.getLinkedItemComponentName().

The default value is null.

Parameters
linkedItemComponentName ComponentName: This value may be null.

Returns
RouteListingPreference.Builder

setUseSystemOrdering

Added in API level 34
public RouteListingPreference.Builder setUseSystemOrdering (boolean useSystemOrdering)

See RouteListingPreference.getUseSystemOrdering()

The default value is true.

Parameters
useSystemOrdering boolean

Returns
RouteListingPreference.Builder This value cannot be null.