# ConversationCallbackDelegate

# ConversationCallbackDelegate

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/ConversationCallbackDelegate.java+class:androidx.car.app.messaging.model.ConversationCallbackDelegate)  
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/ConversationCallbackDelegate "View this page in Java")

<br />

```
@CarProtocol
@RequiresCarApi(value = 7)
interface ConversationCallbackDelegate
```

<br />

*** ** * ** ***

Used by the host to invoke[ConversationCallback](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallback)methods on the client

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [sendMarkAsRead](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallbackDelegate#sendMarkAsRead(androidx.car.app.OnDoneCallback))`(onDoneCallback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)`)` Called from the host to invoke[onMarkAsRead](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallback#onMarkAsRead())on the client.                                                                                                                              |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [sendTextReply](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallbackDelegate#sendTextReply(java.lang.String,androidx.car.app.OnDoneCallback))`(replyText: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`, onDoneCallback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)`)` Called from the host to invoke[onTextReply](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallback#onTextReply(java.lang.String))on the client. |

## Public functions

### sendMarkAsRead

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

```
fun sendMarkAsRead(onDoneCallback: OnDoneCallback): Unit
```

Called from the host to invoke[onMarkAsRead](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallback#onMarkAsRead())on the client.  

### sendTextReply

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

```
fun sendTextReply(replyText: String, onDoneCallback: OnDoneCallback): Unit
```

Called from the host to invoke[onTextReply](https://developer.android.com/reference/kotlin/androidx/car/app/messaging/model/ConversationCallback#onTextReply(java.lang.String))on the client.