RouteListingPreference.Builder
public
static
final
class
RouteListingPreference.Builder
extends Object
java.lang.Object | |
↳ | 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(List<RouteListingPreference.Item> items)
See The default value is an empty list. |
RouteListingPreference.Builder
|
setLinkedItemComponentName(ComponentName linkedItemComponentName)
|
RouteListingPreference.Builder
|
setUseSystemOrdering(boolean useSystemOrdering)
See The default value is |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder ()
Creates a new instance with default values (documented in the setters).
Public methods
build
public RouteListingPreference build ()
Creates and returns a new RouteListingPreference
instance with the given
parameters.
Returns | |
---|---|
RouteListingPreference |
This value cannot be null . |
setItems
public RouteListingPreference.Builder setItems (List<RouteListingPreference.Item> items)
See RouteListingPreference.getItems()
The default value is an empty list.
Parameters | |
---|---|
items |
List : This value cannot be null . |
Returns | |
---|---|
RouteListingPreference.Builder |
This value cannot be null . |
setLinkedItemComponentName
public RouteListingPreference.Builder setLinkedItemComponentName (ComponentName linkedItemComponentName)
See RouteListingPreference.getLinkedItemComponentName()
.
The default value is null
.
Parameters | |
---|---|
linkedItemComponentName |
ComponentName : This value may be null . |
Returns | |
---|---|
RouteListingPreference.Builder |
setUseSystemOrdering
public RouteListingPreference.Builder setUseSystemOrdering (boolean useSystemOrdering)
See RouteListingPreference.getUseSystemOrdering()
The default value is true
.
Parameters | |
---|---|
useSystemOrdering |
boolean |
Returns | |
---|---|
RouteListingPreference.Builder |
This value cannot be null . |