Interface

SubspaceLayoutModifierNode

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public interface SubspaceLayoutModifierNode : DelegatableSubspaceNode

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.

Functions

measure

public 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 the content to be measured.
constraints the constraints within which the measurement should occur.

Returns

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