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 |
RouteListingPreference.Item.Builder
|
setCustomSubtextMessage(CharSequence customSubtextMessage)
|
RouteListingPreference.Item.Builder
|
setFlags(int flags)
See |
RouteListingPreference.Item.Builder
|
setSelectionBehavior(int selectionBehavior)
|
RouteListingPreference.Item.Builder
|
setSubText(int subText)
See |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder (String routeId)
Constructor.
Parameters | |
---|---|
routeId |
String : See Item#getRouteId() .
This value cannot be null . |
Public methods
build
public RouteListingPreference.Item build ()
Creates and returns a new Item
with the given parameters.
Returns | |
---|---|
RouteListingPreference.Item |
This value cannot be null . |
setCustomSubtextMessage
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
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
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
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 . |