RouteListingPreference.Builder


public final class RouteListingPreference.Builder


Builder for RouteListingPreference.

Summary

Public constructors

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

Public constructors

Builder

Added in 1.6.0
public Builder()

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

Public methods

build

Added in 1.6.0
public @NonNull RouteListingPreference build()

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

setItems

Added in 1.6.0
public @NonNull RouteListingPreference.Builder setItems(@NonNull List<RouteListingPreference.Item> items)

See getItems

The default value is an empty list.

setLinkedItemComponentName

Added in 1.6.0
public @NonNull RouteListingPreference.Builder setLinkedItemComponentName(
    @Nullable ComponentName linkedItemComponentName
)

See getLinkedItemComponentName.

The default value is null.

setSystemOrderingEnabled

Added in 1.6.0
public @NonNull RouteListingPreference.Builder setSystemOrderingEnabled(boolean systemOrderingEnabled)

See isSystemOrderingEnabled

The default value is true.