# 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)
class ChipSection : Section<Chip!>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.car.app.model.Section](https://developer.android.com/reference/kotlin/androidx/car/app/model/Section)\<[Chip](https://developer.android.com/reference/kotlin/androidx/car/app/model/Chip)!\> ||
|   | ↳ | [androidx.car.app.model.ChipSection](https://developer.android.com/reference/kotlin/androidx/car/app/model/ChipSection) |

*** ** * ** ***

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

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

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/ChipSection#equals(java.lang.Object)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/ChipStyle?` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/ChipSection#getStyle()()` Returns the style of the section, or `null` if not set. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/ChipSection#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/ChipSection#toString()()` |

### Inherited functions

From [androidx.car.app.model.Section](https://developer.android.com/reference/kotlin/androidx/car/app/model/Section) `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarText?` `https://developer.android.com/reference/kotlin/androidx/car/app/model/Section#getNoItemsMessage()()`

Returns the optional message that should appear if there are no items added to this section.
`https://developer.android.com/reference/kotlin/androidx/car/app/model/OnItemVisibilityChangedDelegate?` `https://developer.android.com/reference/kotlin/androidx/car/app/model/Section#getOnItemVisibilityChangedDelegate()()`

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

Returns the `https://developer.android.com/reference/kotlin/androidx/car/app/model/SectionHeader` for this section, or `null` if not set.
`https://developer.android.com/reference/kotlin/androidx/car/app/model/CarText?` `https://developer.android.com/reference/kotlin/androidx/car/app/model/Section#getTitle()()`

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

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```

### getStyle

Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.8.0)

```
fun getStyle(): ChipStyle?
```

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

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String
```