RouteListingPreference.Item.Builder


public final class RouteListingPreference.Item.Builder


Builder for RouteListingPreference.Item.

Summary

Public constructors

Constructor.

Public constructors

Builder

Added in 1.6.0
public Builder(@NonNull String routeId)

Constructor.

Parameters
@NonNull String routeId

See getRouteId.

Public methods

build

Added in 1.6.0
public @NonNull RouteListingPreference.Item build()

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

setCustomSubtextMessage

Added in 1.6.0
public @NonNull RouteListingPreference.Item.Builder setCustomSubtextMessage(@Nullable CharSequence customSubtextMessage)

See getCustomSubtextMessage.

The default value is null.

setFlags

Added in 1.6.0
public @NonNull RouteListingPreference.Item.Builder setFlags(int flags)

See getFlags.

The default value is zero (no flags).

setSelectionBehavior

Added in 1.6.0
public @NonNull RouteListingPreference.Item.Builder setSelectionBehavior(int selectionBehavior)

See getSelectionBehavior.

The default value is ACTION_TRANSFER_MEDIA.

setSubText

Added in 1.6.0
public @NonNull RouteListingPreference.Item.Builder setSubText(int subText)

See getSubText.

The default value is SUBTEXT_NONE.