public sealed interface SubspaceSemanticsInfo
Provides semantic information about a node in the Subspace layout hierarchy.
This interface defines the properties that are accessible for semantics-related purposes, such as accessibility services and testing. Each SubspaceSemanticsInfo node represents a composable in the UI tree that has semantics attached.
Properties
semanticsId
public val semanticsId: Int
The unique ID of this semantics node.
size
public val size: IntVolumeSize
The dimensions of the 3D bounding box for this node.
pose
public val pose: Pose
The pose of this node relative to its parent layout node in the Compose hierarchy.
poseInRoot
public val poseInRoot: Pose
The pose of this node relative to the root of this Compose hierarchy, in pixels.
semanticsConfiguration
public val semanticsConfiguration: SemanticsConfiguration
The semantics configuration of this node.
This includes all properties attached as modifiers to the current layout node.
childrenInfo
public val childrenInfo: List<SubspaceSemanticsInfo>
The children of this node in the semantics tree.
parentInfo
public val parentInfo: SubspaceSemanticsInfo?
The parent of this node in the semantics tree.
isRoot
public val isRoot: Boolean
Whether this node is the root of a semantics tree.
semanticsEntity
public val semanticsEntity: Entity?
The Entity associated with this node.
scale
public val scale: Float
The scale factor of this node relative to its parent.
components
public val components: List<Component>?
The list of components attached to this node by the Subspace layout update phase.
Returns a collection of Component objects representing various capabilities or properties (e.g., visual, interactive, or physical behaviors) attached to the semanticsEntity. Returns null if there is no underlying Entity.