Android 12 Developer Preview is here! Try it out, and give us your feedback!

OnCheckedChangeDelegate

public interface OnCheckedChangeDelegate

androidx.car.app.model.OnCheckedChangeDelegate


A host-side interface for reporting to clients that the checked state has changed.

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