Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

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 View.

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

checkedId int: the unique identifier of the newly checked chip