# NotificationCompat.CarExtender.UnreadConversation

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationCompat.java+class:androidx.core.app.NotificationCompat.CarExtender.UnreadConversation) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

*** ** * ** ***


```
public class NotificationCompat.CarExtender.UnreadConversation
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> `https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation` is no longer supported. Use `https://developer.android.com/reference/androidx/core/app/NotificationCompat.MessagingStyle` instead.

A class which holds the unread messages from a conversation.

## Summary

| ### Nested types |
|---|
| `public class https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation.Builder` **This class is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `long` | `[getLatestTimestamp](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getLatestTimestamp())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html String[]` | `[getMessages](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getMessages())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `[getParticipant](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getParticipant())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html String[]` | `[getParticipants](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getParticipants())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/app/PendingIntent.html` | `[getReadPendingIntent](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getReadPendingIntent())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/core/app/RemoteInput` | `[getRemoteInput](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getRemoteInput())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/app/PendingIntent.html` | `[getReplyPendingIntent](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getReplyPendingIntent())()` **This method is deprecated.** Deprecated in Java |

## Public methods

### getLatestTimestamp

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
public long [getLatestTimestamp](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getLatestTimestamp())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the timestamp of the conversation.

### getMessages

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
public @Nullable String[] [getMessages](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getMessages())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the list of messages conveyed by this notification.

### getParticipant

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
public @Nullable String [getParticipant](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getParticipant())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the firs participant in the conversation.

### getParticipants

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
public @Nullable String[] [getParticipants](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getParticipants())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the participants in the conversation.

### getReadPendingIntent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
public @Nullable PendingIntent [getReadPendingIntent](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getReadPendingIntent())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the pending intent that Android Auto will send after it reads aloud all messages in this object's message list.

### getRemoteInput

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
public @Nullable RemoteInput [getRemoteInput](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getRemoteInput())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the remote input that will be used to convey the response to a message list, or null if no such remote input exists.

### getReplyPendingIntent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/core#1.3.0)

```
public @Nullable PendingIntent [getReplyPendingIntent](https://developer.android.com/reference/androidx/core/app/NotificationCompat.CarExtender.UnreadConversation#getReplyPendingIntent())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Gets the pending intent that will be triggered when the user replies to this notification.