MaterialCheckBox.OnErrorChangedListener

public static interface MaterialCheckBox.OnErrorChangedListener

com.google.android.material.checkbox.MaterialCheckBox.OnErrorChangedListener


Callback interface invoked when the checkbox error state changes.

Summary

Public methods

abstract void onErrorChanged(MaterialCheckBox checkBox, boolean errorShown)

Called when the error state of a checkbox changes.

Public methods

onErrorChanged

public abstract void onErrorChanged (MaterialCheckBox checkBox, 
                boolean errorShown)

Called when the error state of a checkbox changes.

Parameters
checkBox MaterialCheckBox: the MaterialCheckBox

errorShown boolean: whether the checkbox is on error