# ChipSection

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/model/ChipSection.java+class:androidx.car.app.model.ChipSection) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.8.0)

*** ** * ** ***


```
@ExperimentalCarApi
@CarProtocol
@RequiresCarApi(value = 9)
public final class ChipSection extends Section<Chip>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.car.app.model.Section](https://developer.android.com/reference/androidx/car/app/model/Section)\<[Chip](https://developer.android.com/reference/androidx/car/app/model/Chip)\> ||
|   | ↳ | [androidx.car.app.model.ChipSection](https://developer.android.com/reference/androidx/car/app/model/ChipSection) |

*** ** * ** ***

A section of `https://developer.android.com/reference/androidx/car/app/model/Chip`s. Only 1 ChipSection is allowed in the `https://developer.android.com/reference/androidx/car/app/model/SectionedItemTemplate`.

A group of `https://developer.android.com/reference/androidx/car/app/model/Chip`s 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 https://developer.android.com/reference/androidx/car/app/model/ChipSection.Builder extends https://developer.android.com/reference/androidx/car/app/model/Section.BaseBuilder<https://developer.android.com/reference/androidx/car/app/model/Chip, https://developer.android.com/reference/androidx/car/app/model/ChipSection.Builder>` A builder of `https://developer.android.com/reference/androidx/car/app/model/ChipSection`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/model/ChipSection#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/ChipStyle` | `https://developer.android.com/reference/androidx/car/app/model/ChipSection#getStyle()()` Returns the style of the section, or `null` if not set. |
| `int` | `https://developer.android.com/reference/androidx/car/app/model/ChipSection#hashCode()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/car/app/model/ChipSection#toString()()` |

### Inherited methods

From [androidx.car.app.model.Section](https://developer.android.com/reference/androidx/car/app/model/Section) `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/CarText` `https://developer.android.com/reference/androidx/car/app/model/Section#getNoItemsMessage()()`

Returns the optional message that should appear if there are no items added to this section.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/OnItemVisibilityChangedDelegate` `https://developer.android.com/reference/androidx/car/app/model/Section#getOnItemVisibilityChangedDelegate()()`

Returns the `https://developer.android.com/reference/androidx/car/app/model/OnItemVisibilityChangedDelegate` to be called when the visible items in this `https://developer.android.com/reference/androidx/car/app/model/Section` changes, or `null` if one isn't set.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/SectionHeader` `@https://developer.android.com/reference/androidx/car/app/annotations/RequiresCarApi(value = 9)
@https://developer.android.com/reference/androidx/car/app/annotations/ExperimentalCarApi
https://developer.android.com/reference/androidx/car/app/model/Section#getSectionHeader()()`

Returns the `https://developer.android.com/reference/androidx/car/app/model/SectionHeader` for this section, or `null` if not set.
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/CarText` `https://developer.android.com/reference/androidx/car/app/model/Section#getTitle()()`

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](https://developer.android.com/jetpack/androidx/releases/car-app#1.8.0)

```
public @Nullable ChipStyle getStyle()
```

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

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```