onCheckedChange

inline fun CompoundButton.onCheckedChange(crossinline block: (isChecked: Boolean) -> Unit)

Sets CompoundButton.OnCheckedChangeListener and calls specified function block after checked state changed

Return

true - if checked, otherwise - false

See also