# ConversationCallback

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

*** ** * ** ***


```
@CarProtocol
public interface ConversationCallback
```

<br />

*** ** * ** ***

Host -\> Client callbacks for a `https://developer.android.com/reference/androidx/car/app/messaging/model/ConversationItem`

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/car/app/messaging/model/ConversationCallback#onMarkAsRead()()` Notifies the app that it should mark all messages in the current conversation as read |
| `abstract void` | `https://developer.android.com/reference/androidx/car/app/messaging/model/ConversationCallback#onTextReply(java.lang.String)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html replyText)` Notifies the app that it should send a reply to a given conversation |

## Public methods

### onMarkAsRead

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

```
abstract void onMarkAsRead()
```

Notifies the app that it should mark all messages in the current conversation as read

### onTextReply

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

```
abstract void onTextReply(@NonNull String replyText)
```

Notifies the app that it should send a reply to a given conversation