androidx.xr.compose.subspace.node

Interfaces

CompositionLocalConsumerSubspaceModifierNode

Interface for nodes that can consume composition local values.

LayoutCoordinatesAwareModifierNode

A SubspaceModifier.Node whose onLayoutCoordinates callback is invoked when the layout coordinates of the layout node may have changed.

SubspaceLayoutModifierNode

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

SubspaceSemanticsInfo
SubspaceSemanticsModifierNode

A SubspaceModifier.Node that adds semantics key/values for use in testing, accessibility, and similar use cases.

Classes

SubspaceModifierNodeElement

Modifier elements manage an instance of a particular SubspaceModifier.Node implementation.

Extension functions summary

T

Returns the current value of the given composition local.

Unit

Requests a relayout of the SubspaceLayoutModifierNode composition tree.

Extension functions

currentValueOf

fun <T : Any?> CompositionLocalConsumerSubspaceModifierNode.currentValueOf(
    local: CompositionLocal<T>
): T

Returns the current value of the given composition local.

Parameters
local: CompositionLocal<T>

The composition local to get the value of.

Returns
T

The current value of the given composition local.

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.