RouteListingPreference.Item.Builder


class RouteListingPreference.Item.Builder


Builder for RouteListingPreference.Item.

Summary

Public constructors

Builder(routeId: String)

Constructor.

Public constructors

Builder

Added in 1.6.0
Builder(routeId: String)

Constructor.

Parameters
routeId: String

See getRouteId.

Public functions

build

Added in 1.6.0
fun build(): RouteListingPreference.Item

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

setCustomSubtextMessage

Added in 1.6.0
fun setCustomSubtextMessage(customSubtextMessage: CharSequence?): RouteListingPreference.Item.Builder

See getCustomSubtextMessage.

The default value is null.

setFlags

Added in 1.6.0
fun setFlags(flags: Int): RouteListingPreference.Item.Builder

See getFlags.

The default value is zero (no flags).

setSelectionBehavior

Added in 1.6.0
fun setSelectionBehavior(selectionBehavior: Int): RouteListingPreference.Item.Builder

See getSelectionBehavior.

The default value is ACTION_TRANSFER_MEDIA.

setSubText

Added in 1.6.0
fun setSubText(subText: Int): RouteListingPreference.Item.Builder

See getSubText.

The default value is SUBTEXT_NONE.