# OnCheckedChangeDelegate

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

*** ** * ** ***


```
@CarProtocol
public interface OnCheckedChangeDelegate
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/car/app/model/OnCheckedChangeDelegate#sendCheckedChange(boolean,androidx.car.app.OnDoneCallback)(boolean isChecked, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/OnDoneCallback callback)` Notifies that checked state has changed. |

## Public methods

### sendCheckedChange

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

```
abstract void sendCheckedChange(boolean isChecked, @NonNull OnDoneCallback callback)
```

Notifies that checked state has changed.

| Parameters |
|---|---|
| `boolean isChecked` | the updated checked state |
| `@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 |