Chip
@ExperimentalCarApi
@CarProtocol
@RequiresCarApi(value = 9)
public final class Chip implements Item
A Chip is a toggle-like button with text and/or leading/trailing icon(s).
Chips can, for example, be used to filter items in a SectionedItemTemplate when clicked on. A chip's style, content, and selected state can be changed in response to a user click.
Summary
Public methods
getEndIcon
Added in 1.8.0
public @Nullable CarIcon getEndIcon()
Returns the end icon of the chip, or null if not set.
getOnClickDelegate
Added in 1.8.0
public @Nullable OnClickDelegate getOnClickDelegate()
Returns the OnClickDelegate to be called when the chip is clicked.
getStartIcon
Added in 1.8.0
public @Nullable CarIcon getStartIcon()
Returns the start icon of the chip, or null if not set.
getStyle
Added in 1.8.0
public @Nullable ChipStyle getStyle()
Returns the style of the chip, or null if not set.
