# 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
public class InCallTemplate implements Template
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/dialer/InCallTemplate#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html o)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/car/app/model/Action>` | `https://developer.android.com/reference/androidx/car/app/dialer/InCallTemplate#getActions()()` Returns the list of actions to display in the template. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/Header` | `https://developer.android.com/reference/androidx/car/app/dialer/InCallTemplate#getHeader()()` Returns the `https://developer.android.com/reference/androidx/car/app/model/Header` to show in this template. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/car/app/model/CarIcon` | `https://developer.android.com/reference/androidx/car/app/dialer/InCallTemplate#getIcon()()` Returns the icon to display in the template. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/car/app/model/CarText>` | `https://developer.android.com/reference/androidx/car/app/dialer/InCallTemplate#getTexts()()` Returns the list of text below the title. |
| `@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/dialer/InCallTemplate#getTitle()()` Returns the title to display in the template. |
| `int` | `https://developer.android.com/reference/androidx/car/app/dialer/InCallTemplate#hashCode()()` |
| `boolean` | `https://developer.android.com/reference/androidx/car/app/dialer/InCallTemplate#isLoading()()` Returns whether the template is in a loading state. |
| `@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/dialer/InCallTemplate#toString()()` |

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### getActions

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

```
public @NonNull List<Action> getActions()
```

Returns the list of actions to display in the template.

| See also |
|---|---|
| `https://developer.android.com/reference/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)

```
public @Nullable Header getHeader()
```

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

| See also |
|---|---|
| `https://developer.android.com/reference/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)

```
public @Nullable CarIcon getIcon()
```

Returns the icon to display in the template.

| See also |
|---|---|
| `https://developer.android.com/reference/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)

```
public @NonNull List<CarText> getTexts()
```

Returns the list of text below the title.

| See also |
|---|---|
| `https://developer.android.com/reference/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)

```
public @Nullable CarText getTitle()
```

Returns the title to display in the template.

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

### hashCode

```
public int hashCode()
```

### isLoading

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

```
public boolean isLoading()
```

Returns whether the template is in a loading state.

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

### toString

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