# OnCheckedChangeDelegate

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

*** ** * ** ***

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

<br />

```
@CarProtocol
interface OnCheckedChangeDelegate
```

<br />

*** ** * ** ***

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

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [sendCheckedChange](https://developer.android.com/reference/kotlin/androidx/car/app/model/OnCheckedChangeDelegate#sendCheckedChange(boolean,androidx.car.app.OnDoneCallback))`(isChecked: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`, callback: `[OnDoneCallback](https://developer.android.com/reference/kotlin/androidx/car/app/OnDoneCallback)`)` Notifies that checked state has changed. |

## Public functions

### sendCheckedChange

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

```
fun sendCheckedChange(isChecked: Boolean, callback: OnDoneCallback): Unit
```

Notifies that checked state has changed.  

|                                                  Parameters                                                  |
|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `isChecked: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | the updated checked state                                                                                                                                 |
| `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 |