Added in API level 1

OnCheckedChangeListener


interface OnCheckedChangeListener
android.widget.CompoundButton.OnCheckedChangeListener

Interface definition for a callback to be invoked when the checked state of a compound button changed.

Summary

Public methods
abstract Unit
onCheckedChanged(buttonView: CompoundButton!, isChecked: Boolean)

Called when the checked state of a compound button has changed.

Public methods

onCheckedChanged

Added in API level 1
abstract fun onCheckedChanged(
    buttonView: CompoundButton!,
    isChecked: Boolean
): Unit

Called when the checked state of a compound button has changed.

Parameters
buttonView CompoundButton!: The compound button view whose state has changed.
isChecked Boolean: The new checked state of buttonView.