OnCheckedChangeDelegate


@CarProtocol
public interface OnCheckedChangeDelegate


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

Summary

Public methods

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

Notifies that checked state has changed.

Public methods

sendCheckedChange

Added in 1.0.0
abstract void sendCheckedChange(boolean isChecked, @NonNull OnDoneCallback callback)

Notifies that checked state has changed.

Parameters
boolean isChecked

the updated checked state

@NonNull OnDoneCallback callback

the OnDoneCallback to trigger when the client finishes handling the event