# ConversationCallback

# 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)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/car/app/messaging/model/ConversationCallback "View this page in Java")


```
@CarProtocol
interface ConversationCallback
```

<br />

*** ** * ** ***

Host -\> Client callbacks for a [ConversationItem](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationItem)

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onMarkAsRead](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallback#onMarkAsRead())`()` Notifies the app that it should mark all messages in the current conversation as read                                                                                            |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onTextReply](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallback#onTextReply(java.lang.String))`(replyText: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` Notifies the app that it should send a reply to a given conversation |

## Public functions

### onMarkAsRead

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

```
fun onMarkAsRead(): Unit
```

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)  

```
fun onTextReply(replyText: String): Unit
```

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