# LongMessageTemplate

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

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/car/app/model/LongMessageTemplate "View this page in Java")


```
@RequiresCarApi(value = 2)
@CarProtocol
class LongMessageTemplate : Template
```

<br />

*** ** * ** ***

A template for displaying a long text, which could be several paragraphs long, with associated actions.

#### Template Restrictions

This template's body is only available to the user while the car is parked and does not count against the template quota.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/Screen#onGetTemplate()` |   |

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/kotlin/androidx/car/app/annotations/RequiresCarApi(value = 2) class https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate.Builder` A builder of `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate`. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate#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/ActionStrip?` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate#getActionStrip()()` Returns the `https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip` for this template or `null` if not set. |
| `(https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/car/app/model/Action!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate#getActions()()` Returns the list of actions to display in the template. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/Action?` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate#getHeaderAction()()` Returns the `https://developer.android.com/reference/kotlin/androidx/car/app/model/Action` that is set to be displayed in the header of the template, 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/LongMessageTemplate#getMessage()()` Returns the message to display in the template, which could be several paragraphs long. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarText?` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate#getTitle()()` Returns the title of the template 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/LongMessageTemplate#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate#toString()()` |

## Public functions

### equals

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

### getActionStrip

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

```
fun getActionStrip(): ActionStrip?
```

Returns the `https://developer.android.com/reference/kotlin/androidx/car/app/model/ActionStrip` for this template or `null` if not set.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate.Builder#setActionStrip(androidx.car.app.model.ActionStrip)` |   |

### getActions

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

```
fun getActions(): (Mutable)List<Action!>
```

Returns the list of actions to display in the template.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate.Builder#addAction(androidx.car.app.model.Action)` |   |

### getHeaderAction

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

```
fun getHeaderAction(): Action?
```

Returns the `https://developer.android.com/reference/kotlin/androidx/car/app/model/Action` that is set to be displayed in the header of the template, or `null` if not set.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate.Builder#setHeaderAction(androidx.car.app.model.Action)` |   |

### getMessage

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

```
fun getMessage(): CarText
```

Returns the message to display in the template, which could be several paragraphs long.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate.Builder#Builder(java.lang.CharSequence)` |   |

### getTitle

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

```
fun getTitle(): CarText?
```

Returns the title of the template or `null` if not set.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/LongMessageTemplate.Builder#setTitle(java.lang.CharSequence)` |   |

### hashCode

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

### toString

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