CondensedItem.Builder


public final class CondensedItem.Builder


A builder for CondensedItem.

Summary

Public constructors

Creates a new builder.

Public methods

@NonNull CondensedItem

Builds the CondensedItem.

@NonNull CondensedItem.Builder

Sets the leading image of the item.

@NonNull CondensedItem.Builder

Sets the text of the item.

@NonNull CondensedItem.Builder

Sets the title of the item.

Public constructors

Builder

Added in 1.8.0-beta01
public Builder()

Creates a new builder.

Public methods

build

Added in 1.8.0-beta01
public @NonNull CondensedItem build()

Builds the CondensedItem.

setLeadingImage

Added in 1.8.0-beta01
public @NonNull CondensedItem.Builder setLeadingImage(@NonNull CarIcon leadingImage)

Sets the leading image of the item.

setText

Added in 1.8.0-beta01
public @NonNull CondensedItem.Builder setText(@NonNull CharSequence text)

Sets the text of the item.

setTitle

Added in 1.8.0-beta01
public @NonNull CondensedItem.Builder setTitle(@NonNull CharSequence title)

Sets the title of the item.