Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.media.RouteListingPreference.Item.Builder |
Builder for Item
.
Summary
Public constructors | |
---|---|
Constructor. |
Public methods | |
---|---|
RouteListingPreference.Item |
build() Creates and returns a new |
RouteListingPreference.Item.Builder |
setCustomSubtextMessage(customSubtextMessage: CharSequence?) |
RouteListingPreference.Item.Builder |
See |
RouteListingPreference.Item.Builder |
setSelectionBehavior(selectionBehavior: Int) |
RouteListingPreference.Item.Builder |
setSubText(subText: Int) See |
Public constructors
Builder
Added in API level 34
Builder(routeId: String)
Constructor.
Parameters | |
---|---|
routeId |
String: See Item.getRouteId() . This value cannot be null . |
Public methods
build
Added in API level 34
fun build(): RouteListingPreference.Item
Creates and returns a new Item
with the given parameters.
Return | |
---|---|
RouteListingPreference.Item |
This value cannot be null . |
setCustomSubtextMessage
Added in API level 34
fun setCustomSubtextMessage(customSubtextMessage: CharSequence?): RouteListingPreference.Item.Builder
See Item.getCustomSubtextMessage()
.
The default value is null
.
Parameters | |
---|---|
customSubtextMessage |
CharSequence?: This value may be null . |
setFlags
Added in API level 34
fun setFlags(flags: Int): RouteListingPreference.Item.Builder
See Item.getFlags()
.
The default value is zero (no flags).
Return | |
---|---|
RouteListingPreference.Item.Builder |
This value cannot be null . |
setSelectionBehavior
Added in API level 34
fun setSelectionBehavior(selectionBehavior: Int): RouteListingPreference.Item.Builder
See Item.getSelectionBehavior()
.
The default value is ACTION_TRANSFER_MEDIA
.
Return | |
---|---|
RouteListingPreference.Item.Builder |
This value cannot be null . |
setSubText
Added in API level 34
fun setSubText(subText: Int): RouteListingPreference.Item.Builder
See Item.getSubText()
.
The default value is SUBTEXT_NONE
.
Return | |
---|---|
RouteListingPreference.Item.Builder |
This value cannot be null . |