ChipSection


@ExperimentalCarApi
@CarProtocol
@RequiresCarApi(value = 9)
public final class ChipSection extends Section


A section of Chips. Only 1 ChipSection is allowed in the SectionedItemTemplate.

A group of Chips that typically help a user filter a template's content down to more specific items or dynamically suggest relevant actions for a user to take.

The host may limit the number of chips displayed to ensure driver safety.

Summary

Nested types

public final class ChipSection.Builder extends Section.BaseBuilder

A builder of ChipSection.

Public methods

boolean
@Nullable ChipStyle

Returns the style of the section, or null if not set.

int
@NonNull String

Inherited methods

From androidx.car.app.model.Section
@Nullable CarText

Returns the optional message that should appear if there are no items added to this section.

@Nullable OnItemVisibilityChangedDelegate

Returns the OnItemVisibilityChangedDelegate to be called when the visible items in this Section changes, or null if one isn't set.

@Nullable CarText

Returns the optional text that should appear with the items in this section.

Public methods

equals

public boolean equals(@Nullable Object other)

getStyle

Added in 1.8.0-beta01
public @Nullable ChipStyle getStyle()

Returns the style of the section, or null if not set.

hashCode

public int hashCode()

toString

public @NonNull String toString()