{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ObserverModifierNode


Modifier.Nodes that implement ObserverNode can provide their own implementation of onObservedReadsChanged that will be called whenever the value of read object has changed. To trigger onObservedReadsChanged, read values within an observeReads block.

Summary

Public functions

Unit

This callback is called when any values that are read within the observeReads block changes.

Cmn

Inherited properties

From androidx.compose.ui.node.DelegatableNode
Modifier.Node

A reference of the Modifier.Node that holds this node's position in the node hierarchy.

Cmn

Public functions

onObservedReadsChanged

fun onObservedReadsChanged(): Unit

This callback is called when any values that are read within the observeReads block changes.