The Android Developer Challenge is back! Submit your idea before December 2.

MaterialButtonToggleGroup.OnButtonCheckedListener

public static interface MaterialButtonToggleGroup.OnButtonCheckedListener

com.google.android.material.button.MaterialButtonToggleGroup.OnButtonCheckedListener


Interface definition for a callback to be invoked when a MaterialButton is checked or unchecked in this group.

Summary

Public methods

abstract void onButtonChecked(MaterialButtonToggleGroup group, int checkedId, boolean isChecked)

Called when a MaterialButton in this group is checked or unchecked.

Public methods

onButtonChecked

void onButtonChecked (MaterialButtonToggleGroup group, 
                int checkedId, 
                boolean isChecked)

Called when a MaterialButton in this group is checked or unchecked.

Parameters
group MaterialButtonToggleGroup: The group in which the MaterialButton's checked state was changed

checkedId int: The unique identifier of the MaterialButton whose check state changed

isChecked boolean: Whether the MaterialButton is currently checked