MaterialCardView.OnCheckedChangeListener

public static interface MaterialCardView.OnCheckedChangeListener

com.google.android.material.card.MaterialCardView.OnCheckedChangeListener


Interface definition for a callback to be invoked when the card checked state changes.

Summary

Public methods

abstract void onCheckedChanged(MaterialCardView card, boolean isChecked)

Called when the checked state of a compound button has changed.

Public methods

onCheckedChanged

public abstract void onCheckedChanged (MaterialCardView card, 
                boolean isChecked)

Called when the checked state of a compound button has changed.

Parameters
card MaterialCardView: The Material Card View whose state has changed.

isChecked boolean: The new checked state of MaterialCardView.