Added in API level 34

Builder


class Builder
kotlin.Any
   ↳ android.media.RouteListingPreference.Item.Builder

Builder for Item.

Summary

Public constructors
Builder(routeId: String)

Constructor.

Public methods
RouteListingPreference.Item

Creates and returns a new Item with the given parameters.

RouteListingPreference.Item.Builder
setCustomSubtextMessage(customSubtextMessage: CharSequence?)

See Item#getCustomSubtextMessage().

RouteListingPreference.Item.Builder
setFlags(flags: Int)

See Item#getFlags().

RouteListingPreference.Item.Builder
setSelectionBehavior(selectionBehavior: Int)

See Item#getSelectionBehavior().

RouteListingPreference.Item.Builder
setSubText(subText: Int)

See Item#getSubText().

Public constructors

Builder

Added in API level 34
Builder(routeId: String)

Constructor.

Parameters
routeId String: See Item#getRouteId(). This value cannot be null.

Public methods

build

Added in API level 34
fun build(): RouteListingPreference.Item

Creates and returns a new Item with the given parameters.

Return
RouteListingPreference.Item This value cannot be null.

setCustomSubtextMessage

Added in API level 34
fun setCustomSubtextMessage(customSubtextMessage: CharSequence?): RouteListingPreference.Item.Builder

See Item#getCustomSubtextMessage().

The default value is null.

Parameters
customSubtextMessage CharSequence?: This value may be null.

setFlags

Added in API level 34
fun setFlags(flags: Int): RouteListingPreference.Item.Builder

See Item#getFlags().

The default value is zero (no flags).

Return
RouteListingPreference.Item.Builder This value cannot be null.

setSelectionBehavior

Added in API level 34
fun setSelectionBehavior(selectionBehavior: Int): RouteListingPreference.Item.Builder

See Item#getSelectionBehavior().

The default value is ACTION_TRANSFER_MEDIA.

Return
RouteListingPreference.Item.Builder This value cannot be null.

setSubText

Added in API level 34
fun setSubText(subText: Int): RouteListingPreference.Item.Builder

See Item#getSubText().

The default value is SUBTEXT_NONE.

Return
RouteListingPreference.Item.Builder This value cannot be null.