androidx.compose.ui.node

DelegatableNode

Interface · from org.jetbrains.compose.ui:ui:1.12.2

No hand-written docs yet.

Represents a Modifier.Node which can be a delegate of another Modifier.Node. Since Modifier.Node implements this interface, in practice any Modifier.Node can be delegated.

interface DelegatableNode

Kinds of DelegatableNode

Anywhere a DelegatableNode is expected, you can pass any of these.

How to get one

Ready-made values and functions that return it

Or create one of the kinds listed above.

Properties

node

val node: Modifier.Node

A reference of the Modifier.Node that holds this node's position in the node hierarchy. If the node is a delegate of another node, this will point to the root delegating node that is actually part of the node tree. Otherwise, this will point to itself.

Functions

onDensityChangeSince 1.8

fun onDensityChange()

Invoked when the density changes for this node. This affects Dp to pixel conversions, and can cause coordinates / other values to change.

onLayoutDirectionChangeSince 1.8

fun onLayoutDirectionChange()

Invoked when the layout direction changes for this node. This can affect the layout and drawing of nodes.

Nested types

Library docs

Represents a Modifier.Node which can be a delegate of another Modifier.Node. Since Modifier.Node implements this interface, in practice any Modifier.Node can be delegated.