# InputCallbackDelegate

# InputCallbackDelegate

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

*** ** * ** ***

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

<br />

```
@RequiresCarApi(value = 2)
interface InputCallbackDelegate
```

<br />

*** ** * ** ***

A host-side delegate for sending[InputCallback](https://developer.android.com/reference/kotlin/androidx/car/app/model/InputCallback)events to the car app.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [sendInputSubmitted](https://developer.android.com/reference/kotlin/androidx/car/app/model/InputCallbackDelegate#sendInputSubmitted(java.lang.String,androidx.car.app.OnDoneCallback))`(value: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`, callback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)`)` Notifies that the user has submitted the text. |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [sendInputTextChanged](https://developer.android.com/reference/kotlin/androidx/car/app/model/InputCallbackDelegate#sendInputTextChanged(java.lang.String,androidx.car.app.OnDoneCallback))`(value: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`, callback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)`)` Notifies that user input text has changed. |

## Public functions

### sendInputSubmitted

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

```
fun sendInputSubmitted(value: String, callback: OnDoneCallback): Unit
```

Notifies that the user has submitted the text.  

|                                                  Parameters                                                  |
|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `value: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                   | the text entered                                                                                                                                          |
| `callback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback) | the[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)to trigger when the client finishes handling the event |

### sendInputTextChanged

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

```
fun sendInputTextChanged(value: String, callback: OnDoneCallback): Unit
```

Notifies that user input text has changed.  

|                                                  Parameters                                                  |
|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `value: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                   | the text entered                                                                                                                                          |
| `callback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback) | the[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)to trigger when the client finishes handling the event |