Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.media.RouteListingPreference.Builder |
Builder for RouteListingPreference
.
Summary
Public constructors | |
---|---|
Builder() Creates a new instance with default values (documented in the setters). |
Public methods | |
---|---|
RouteListingPreference |
build() Creates and returns a new |
RouteListingPreference.Builder |
setItems(items: MutableList<RouteListingPreference.Item!>) See |
RouteListingPreference.Builder |
setLinkedItemComponentName(linkedItemComponentName: ComponentName?) |
RouteListingPreference.Builder |
setUseSystemOrdering(useSystemOrdering: Boolean) |
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
The default value is true
.
Return | |
---|---|
RouteListingPreference.Builder |
This value cannot be null . |