OnCheckedChangeDelegate

public interface OnCheckedChangeDelegate

androidx.car.app.model.OnCheckedChangeDelegate


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

Summary

Public methods

abstract void sendCheckedChange(boolean isChecked, OnDoneCallback callback)

Notifies that checked state has changed.

Public methods

sendCheckedChange

public abstract void sendCheckedChange (boolean isChecked, 
                OnDoneCallback callback)

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