# Notification.CarExtender.UnreadConversation

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# UnreadConversation

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/app/Notification.CarExtender.UnreadConversation "View this page in Java")  

```
class UnreadConversation
```

|---|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                     ||
| ↳ | [android.app.Notification.CarExtender.UnreadConversation](https://developer.android.com/reference/kotlin/android/app/Notification.CarExtender.UnreadConversation#) |

A class which holds the unread messages from a conversation.

## Summary

|                                                                                                                                                                                                                      Public methods                                                                                                                                                                                                                      ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)                                                                                         | [getLatestTimestamp](https://developer.android.com/reference/kotlin/android/app/Notification.CarExtender.UnreadConversation#getLatestTimestamp())`()` Gets the timestamp of the conversation.                                                                                  |
| open[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>! | [getMessages](https://developer.android.com/reference/kotlin/android/app/Notification.CarExtender.UnreadConversation#getMessages())`()` Gets the list of messages conveyed by this notification.                                                                               |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                    | [getParticipant](https://developer.android.com/reference/kotlin/android/app/Notification.CarExtender.UnreadConversation#getParticipant())`()` Gets the firs participant in the conversation.                                                                                   |
| open[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>! | [getParticipants](https://developer.android.com/reference/kotlin/android/app/Notification.CarExtender.UnreadConversation#getParticipants())`()` Gets the participants in the conversation.                                                                                     |
| open[PendingIntent](https://developer.android.com/reference/kotlin/android/app/PendingIntent)!                                                                           | [getReadPendingIntent](https://developer.android.com/reference/kotlin/android/app/Notification.CarExtender.UnreadConversation#getReadPendingIntent())`()` Gets the pending intent that Android Auto will send after it reads aloud all messages in this object's message list. |
| open[RemoteInput](https://developer.android.com/reference/kotlin/android/app/RemoteInput)!                                                                               | [getRemoteInput](https://developer.android.com/reference/kotlin/android/app/Notification.CarExtender.UnreadConversation#getRemoteInput())`()` Gets the remote input that will be used to convey the response to a message list, or`null`if no such remote input exists.        |
| open[PendingIntent](https://developer.android.com/reference/kotlin/android/app/PendingIntent)!                                                                           | [getReplyPendingIntent](https://developer.android.com/reference/kotlin/android/app/Notification.CarExtender.UnreadConversation#getReplyPendingIntent())`()` Gets the pending intent that will be triggered when the user replies to this notification.                         |

## Public methods

### getLatestTimestamp

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getLatestTimestamp(): Long
```

Gets the timestamp of the conversation.  

### getMessages

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMessages(): Array<String!>!
```

Gets the list of messages conveyed by this notification.  

### getParticipant

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getParticipant(): String!
```

Gets the firs participant in the conversation.  

### getParticipants

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getParticipants(): Array<String!>!
```

Gets the participants in the conversation.  

### getReadPendingIntent

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getReadPendingIntent(): PendingIntent!
```

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

### getRemoteInput

Added in[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getRemoteInput(): RemoteInput!
```

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[API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getReplyPendingIntent(): PendingIntent!
```

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