RouteListingPreference.Item.Builder


public static final class RouteListingPreference.Item.Builder
extends Object

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


Builder for Item.

Summary

Public constructors

Builder(String routeId)

Constructor.

Public methods

RouteListingPreference.Item build()

Creates and returns a new Item with the given parameters.

RouteListingPreference.Item.Builder setCustomSubtextMessage(CharSequence customSubtextMessage)

See Item#getCustomSubtextMessage().

RouteListingPreference.Item.Builder setFlags(int flags)

See Item#getFlags().

RouteListingPreference.Item.Builder setSelectionBehavior(int selectionBehavior)

See Item#getSelectionBehavior().

RouteListingPreference.Item.Builder setSubText(int subText)

See Item#getSubText().

Inherited methods

Public constructors

Builder

Added in API level 34
public Builder (String routeId)

Constructor.

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

Public methods

build

Added in API level 34
public RouteListingPreference.Item build ()

Creates and returns a new Item with the given parameters.

Returns
RouteListingPreference.Item This value cannot be null.

setCustomSubtextMessage

Added in API level 34
public RouteListingPreference.Item.Builder setCustomSubtextMessage (CharSequence customSubtextMessage)

See Item#getCustomSubtextMessage().

The default value is null.

Parameters
customSubtextMessage CharSequence: This value may be null.

Returns
RouteListingPreference.Item.Builder

setFlags

Added in API level 34
public RouteListingPreference.Item.Builder setFlags (int flags)

See Item#getFlags().

The default value is zero (no flags).

Parameters
flags int

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

setSelectionBehavior

Added in API level 34
public RouteListingPreference.Item.Builder setSelectionBehavior (int selectionBehavior)

See Item#getSelectionBehavior().

The default value is RouteListingPreference.ACTION_TRANSFER_MEDIA.

Parameters
selectionBehavior int

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

setSubText

Added in API level 34
public RouteListingPreference.Item.Builder setSubText (int subText)

See Item#getSubText().

The default value is RouteListingPreference.Item.SUBTEXT_NONE.

Parameters
subText int

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