Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ChipGroup.OnCheckedChangeListener

public static interface ChipGroup.OnCheckedChangeListener

com.google.android.material.chip.ChipGroup.OnCheckedChangeListener


Interface definition for a callback to be invoked when the checked chip changed in this group.

Summary

Public methods

abstract void onCheckedChanged(ChipGroup group, int checkedId)

Called when the checked chip has changed.

Public methods

onCheckedChanged

void onCheckedChanged (ChipGroup group, 
                int checkedId)

Called when the checked chip has changed. When the selection is cleared, checkedId is NO_ID.

Parameters
group ChipGroup: the group in which the checked chip has changed

checkedId int: the unique identifier of the newly checked chip