OnCheckedChangeDelegate


@CarProtocol
interface OnCheckedChangeDelegate


A host-side delegate for sending androidx.car.app.model.Toggle.OnCheckedChangeListener events to the car app.

Summary

Public functions

Unit
sendCheckedChange(isChecked: Boolean, callback: OnDoneCallback)

Notifies that checked state has changed.

Public functions

sendCheckedChange

Added in 1.0.0
fun sendCheckedChange(isChecked: Boolean, callback: OnDoneCallback): Unit

Notifies that checked state has changed.

Parameters
isChecked: Boolean

the updated checked state

callback: OnDoneCallback

the OnDoneCallback to trigger when the client finishes handling the event