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

ObserverModifierNode

public interface ObserverModifierNode extends DelegatableNode


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 methods

abstract void

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

Inherited methods

From androidx.compose.ui.node.DelegatableNode
abstract @NonNull Modifier.Node

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

Public methods

onObservedReadsChanged

abstract void onObservedReadsChanged()

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