Stay organized with collections
Save and categorize content based on your preferences.
NodeChangeListener
interface NodeChangeListener : EventListener
A listener for receiving preference node change events.
Summary
Public methods |
abstract Unit |
This method gets called when a child node is added.
|
abstract Unit |
This method gets called when a child node is removed.
|
Public methods
childAdded
abstract fun childAdded(evt: NodeChangeEvent!): Unit
This method gets called when a child node is added.
Parameters |
evt |
NodeChangeEvent!: A node change event object describing the parent and child node. |
childRemoved
abstract fun childRemoved(evt: NodeChangeEvent!): Unit
This method gets called when a child node is removed.
Parameters |
evt |
NodeChangeEvent!: A node change event object describing the parent and child node. |
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,["# NodeChangeListener\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nNodeChangeListener\n==================\n\n```\ninterface NodeChangeListener : EventListener\n```\n\n|-----------------------------------------|\n| [java.util.prefs.NodeChangeListener](#) |\n\nA listener for receiving preference node change events.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [childAdded](#childAdded(java.util.prefs.NodeChangeEvent))`(`evt:` `[NodeChangeEvent](/reference/kotlin/java/util/prefs/NodeChangeEvent)!`)` This method gets called when a child node is added. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [childRemoved](#childRemoved(java.util.prefs.NodeChangeEvent))`(`evt:` `[NodeChangeEvent](/reference/kotlin/java/util/prefs/NodeChangeEvent)!`)` This method gets called when a child node is removed. |\n\nPublic methods\n--------------\n\n### childAdded\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun childAdded(evt: NodeChangeEvent!): Unit\n```\n\nThis method gets called when a child node is added.\n\n| Parameters ||\n|-------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `evt` | [NodeChangeEvent](/reference/kotlin/java/util/prefs/NodeChangeEvent)!: A node change event object describing the parent and child node. |\n\n### childRemoved\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun childRemoved(evt: NodeChangeEvent!): Unit\n```\n\nThis method gets called when a child node is removed.\n\n| Parameters ||\n|-------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| `evt` | [NodeChangeEvent](/reference/kotlin/java/util/prefs/NodeChangeEvent)!: A node change event object describing the parent and child node. |"]]