Stay organized with collections
Save and categorize content based on your preferences.
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
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
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MaterialCheckBox.OnErrorChangedListener\n=======================================\n\n\n`\npublic\nstatic\n\n\ninterface\nMaterialCheckBox.OnErrorChangedListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------------------------|\n| com.google.android.material.checkbox.MaterialCheckBox.OnErrorChangedListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback interface invoked when the checkbox error state changes.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onErrorChanged](/reference/com/google/android/material/checkbox/MaterialCheckBox.OnErrorChangedListener#onErrorChanged(com.google.android.material.checkbox.MaterialCheckBox,%20boolean))`(`[MaterialCheckBox](/reference/com/google/android/material/checkbox/MaterialCheckBox)` checkBox, boolean errorShown) ` Called when the error state of a checkbox changes. |\n\nPublic methods\n--------------\n\n### onErrorChanged\n\n```\npublic abstract void onErrorChanged (MaterialCheckBox checkBox, \n boolean errorShown)\n```\n\nCalled when the error state of a checkbox changes.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|---------------------------------------------------------------------------------------------------------------------|\n| `checkBox` | `MaterialCheckBox`: the [MaterialCheckBox](/reference/com/google/android/material/checkbox/MaterialCheckBox) \u003cbr /\u003e |\n| `errorShown` | `boolean`: whether the checkbox is on error \u003cbr /\u003e |"]]