ParentDataModifierNode


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 functions

Any?

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

Cmn

Extension functions

Unit

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

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

modifyParentData

fun Density.modifyParentData(parentData: Any?): Any?

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

Extension functions

invalidateParentData

fun ParentDataModifierNode.invalidateParentData(): Unit

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