public static interface AbsButton.CheckedStateChangedListener
AbsButton instance.
You must inherit and implement the onCheckedChanged(ohos.agp.components.AbsButton, boolean) method in this interface to
process state change events of a button.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onCheckedChanged(AbsButton button,
boolean isChecked) |
Called back to process state change events of an
AbsButton item. |
void onCheckedChanged(AbsButton button, boolean isChecked)
AbsButton item.
This method is invoked when an AbsButton item switches between
the checked and unchecked states. It passes the AbsButton
item and its current state to process state change events.
button - Indicates the AbsButton item.isChecked - Indicates the current state of the absButton.
true indicates checked; false indicates unchecked.