# CondensedSection

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/CondensedSection.java+class:androidx.car.app.model.CondensedSection) Added in [1.9.0-alpha03](https://developer.android.com/jetpack/androidx/releases/car-app#1.9.0-alpha03)

*** ** * ** ***


```
@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
class CondensedSection : Section<CondensedItem!>
```

<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)\<[CondensedItem](https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedItem)!\> ||
|   | ↳ | [androidx.car.app.model.CondensedSection](https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection) |

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/car/app/model/Section` within the `SectionedItemTemplate` that contains `https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedItem`s.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/kotlin/androidx/car/app/annotations/RequiresCarApi(value = 9) @https://developer.android.com/reference/kotlin/androidx/car/app/annotations/ExperimentalCarApi class https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection.Builder : https://developer.android.com/reference/kotlin/androidx/car/app/model/Section.BaseBuilder<https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedItem!, https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection.Builder!>` A builder for `https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection`. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection#INCOMPLETE_LAST_ROW_AS_IS() = 0` The last row will be shown as-is. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection#INCOMPLETE_LAST_ROW_TRUNCATE() = 1` Truncates the last row if that row is not completely filled |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection#equals(java.lang.Object)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection#getIncompleteLastRowStrategy()()` Returns the strategy for handling incomplete last row |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/CondensedSection#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.

## Constants

### INCOMPLETE_LAST_ROW_AS_IS

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

```
const val INCOMPLETE_LAST_ROW_AS_IS = 0: Int
```

The last row will be shown as-is. This is a default behavior

### INCOMPLETE_LAST_ROW_TRUNCATE

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

```
const val INCOMPLETE_LAST_ROW_TRUNCATE = 1: Int
```

Truncates the last row if that row is not completely filled

## Public functions

### equals

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

### getIncompleteLastRowStrategy

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

```
fun getIncompleteLastRowStrategy(): Int
```

Returns the strategy for handling incomplete last row

### hashCode

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

### toString

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