Added in API level 34

Builder


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

Builder for RouteListingPreference.

Summary

Public constructors

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

Public methods
RouteListingPreference

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

RouteListingPreference.Builder

See getItems()

RouteListingPreference.Builder
setLinkedItemComponentName(linkedItemComponentName: ComponentName?)

See getLinkedItemComponentName().

RouteListingPreference.Builder
setUseSystemOrdering(useSystemOrdering: Boolean)

See getUseSystemOrdering()

Public constructors

Builder

Added in API level 34
Builder()

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

Public methods

build

Added in API level 34
fun build(): RouteListingPreference

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

Return
RouteListingPreference This value cannot be null.

setItems

Added in API level 34
fun setItems(items: MutableList<RouteListingPreference.Item!>): RouteListingPreference.Builder

See getItems()

The default value is an empty list.

Parameters
items MutableList<RouteListingPreference.Item!>: This value cannot be null.
Return
RouteListingPreference.Builder This value cannot be null.

setLinkedItemComponentName

Added in API level 34
fun setLinkedItemComponentName(linkedItemComponentName: ComponentName?): RouteListingPreference.Builder

See getLinkedItemComponentName().

The default value is null.

Parameters
linkedItemComponentName ComponentName?: This value may be null.

setUseSystemOrdering

Added in API level 34
fun setUseSystemOrdering(useSystemOrdering: Boolean): RouteListingPreference.Builder

See getUseSystemOrdering()

The default value is true.

Return
RouteListingPreference.Builder This value cannot be null.