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

*** ** * ** ***


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

<br />

*** ** * ** ***

A host-side delegate for sending `https://developer.android.com/reference/androidx/car/app/model/InputCallback` events to the car app.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/car/app/model/InputCallbackDelegate#sendInputSubmitted(java.lang.String,androidx.car.app.OnDoneCallback)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html value, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/OnDoneCallback callback)` Notifies that the user has submitted the text. |
| `abstract void` | `https://developer.android.com/reference/androidx/car/app/model/InputCallbackDelegate#sendInputTextChanged(java.lang.String,androidx.car.app.OnDoneCallback)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html value, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/OnDoneCallback callback )` Notifies that user input text has changed. |

## Public methods

### sendInputSubmitted

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

```
abstract void sendInputSubmitted(@NonNull String value, @NonNull OnDoneCallback callback)
```

Notifies that the user has submitted the text.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html value` | the text entered |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/OnDoneCallback callback` | the `https://developer.android.com/reference/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)

```
abstract void sendInputTextChanged(
    @NonNull String value,
    @NonNull OnDoneCallback callback
)
```

Notifies that user input text has changed.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html value` | the text entered |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/OnDoneCallback callback` | the `https://developer.android.com/reference/androidx/car/app/OnDoneCallback` to trigger when the client finishes handling the event |