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

ParentDataModifierNode

public interface ParentDataModifierNode extends DelegatableNode


A Modifier.Node that provides data to the parent Layout. This can be read from within the the Layout during measurement and positioning, via IntrinsicMeasurable.parentData. The parent data is commonly used to inform the parent how the child Layout should be measured and positioned.

This is the androidx.compose.ui.Modifier.Node equivalent of androidx.compose.ui.layout.ParentDataModifier

Summary

Public methods

abstract Object
modifyParentData(@NonNull Density receiver, Object parentData)

Provides a parentData, given the parentData already provided through the modifier's chain.

Extension functions

default final void

This invalidates the current node's parent data, and ensures that layouts that utilize it will be scheduled to relayout for the next frame.

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

modifyParentData

abstract Object modifyParentData(@NonNull Density receiver, Object parentData)

Provides a parentData, given the parentData already provided through the modifier's chain.

Extension functions

ParentDataModifierNodeKt.invalidateParentData

default final void ParentDataModifierNodeKt.invalidateParentData(
    @NonNull ParentDataModifierNode receiver
)

This invalidates the current node's parent data, and ensures that layouts that utilize it will be scheduled to relayout for the next frame.