SubspaceLayoutModifierNode

interface SubspaceLayoutModifierNode


A specialized SubspaceModifier.Node responsible for modifying the measurement and layout behavior of its wrapped content within the Subspace environment.

Based on androidx.compose.ui.node.LayoutModifierNode.

Summary

Public functions

SubspaceMeasureResult
SubspaceMeasureScope.measure(
    measurable: SubspaceMeasurable,
    constraints: VolumeConstraints
)

Defines the measurement and layout of the SubspaceMeasurable within the given SubspaceMeasureScope.

Extension functions

Unit

Requests a relayout of the SubspaceLayoutModifierNode composition tree.

Public functions

fun SubspaceMeasureScope.measure(
    measurable: SubspaceMeasurable,
    constraints: VolumeConstraints
): SubspaceMeasureResult

Defines the measurement and layout of the SubspaceMeasurable within the given SubspaceMeasureScope.

The measurable is subject to the specified VolumeConstraints.

Parameters
measurable: SubspaceMeasurable

the content to be measured.

constraints: VolumeConstraints

the constraints within which the measurement should occur.

Returns
SubspaceMeasureResult

a SubspaceMeasureResult encapsulating the size and alignment lines of the measured layout.

Extension functions

requestRelayout

fun SubspaceLayoutModifierNode.requestRelayout(): Unit

Requests a relayout of the SubspaceLayoutModifierNode composition tree.

This is used to request a relayout in stateful layout modifiers that are impacted by events that don't trigger a recomposition. Do not call this from SubspaceLayoutModifierNode.measure.