# InCallTemplate

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

*** ** * ** ***


```
@ExperimentalCarApi
@CarProtocol
class InCallTemplate : Template
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/car/app/model/Template` showing phone call controls and details.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate.Builder` A builder for `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate`. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate#equals(java.lang.Object)(o: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `(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/dialer/InCallTemplate#getActions()()` Returns the list of actions to display in the template. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/Header?` | `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate#getHeader()()` Returns the `https://developer.android.com/reference/kotlin/androidx/car/app/model/Header` to show in this template. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarIcon?` | `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate#getIcon()()` Returns the icon to display in the template. |
| `(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/CarText!>` | `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate#getTexts()()` Returns the list of text below the title. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/model/CarText?` | `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate#getTitle()()` Returns the title to display in the template. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate#isLoading()()` Returns whether the template is in a loading state. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate#toString()()` |

## Public functions

### equals

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

### getActions

Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.8.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/dialer/InCallTemplate.Builder#addAction(androidx.car.app.model.Action)` |   |

### getHeader

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

```
fun getHeader(): Header?
```

Returns the `https://developer.android.com/reference/kotlin/androidx/car/app/model/Header` to show in this template.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate.Builder#setHeader(androidx.car.app.model.Header)` |   |

### getIcon

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

```
fun getIcon(): CarIcon?
```

Returns the icon to display in the template.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate.Builder#setIcon(androidx.car.app.model.CarIcon)` |   |

### getTexts

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

```
fun getTexts(): (Mutable)List<CarText!>
```

Returns the list of text below the title.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate.Builder#addText(androidx.car.app.model.CarText)` |   |

### getTitle

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

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

Returns the title to display in the template.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate.Builder#setTitle(androidx.car.app.model.CarText)` |   |

### hashCode

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

### isLoading

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

```
fun isLoading(): Boolean
```

Returns whether the template is in a loading state.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/car/app/dialer/InCallTemplate.Builder#setLoading(boolean)` |   |

### toString

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