SubspaceSemanticsInfo

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.

Summary

Public properties

List<SubspaceSemanticsInfo>

The children of this node in the semantics tree.

open List<Component>?

The list of components attached to this node by the Subspace layout update phase.

open Boolean

Whether this node is the root of a semantics tree.

SubspaceSemanticsInfo?

The parent of this node in the semantics tree.

Pose

The pose of this node relative to its parent layout node in the Compose hierarchy.

Pose

The pose of this node relative to the root of this Compose hierarchy, in pixels.

open Float

The scale factor of this node relative to its parent.

SemanticsConfiguration

The semantics configuration of this node.

Entity?

The Entity associated with this node.

Int

The unique ID of this semantics node.

IntVolumeSize

The dimensions of the 3D bounding box for this node.

Public properties

childrenInfo

Added in 1.0.0-alpha15
val childrenInfoList<SubspaceSemanticsInfo>

The children of this node in the semantics tree.

components

Added in 1.0.0-alpha15
open val componentsList<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.

isRoot

Added in 1.0.0-alpha15
open val isRootBoolean

Whether this node is the root of a semantics tree.

parentInfo

Added in 1.0.0-alpha15
val parentInfoSubspaceSemanticsInfo?

The parent of this node in the semantics tree.

pose

Added in 1.0.0-alpha15
val posePose

The pose of this node relative to its parent layout node in the Compose hierarchy.

poseInRoot

Added in 1.0.0-alpha15
val poseInRootPose

The pose of this node relative to the root of this Compose hierarchy, in pixels.

scale

Added in 1.0.0-alpha15
open val scaleFloat

The scale factor of this node relative to its parent.

semanticsConfiguration

Added in 1.0.0-alpha15
val semanticsConfigurationSemanticsConfiguration

The semantics configuration of this node.

This includes all properties attached as modifiers to the current layout node.

semanticsEntity

Added in 1.0.0-alpha15
val semanticsEntityEntity?

The Entity associated with this node.

semanticsId

Added in 1.0.0-alpha15
val semanticsIdInt

The unique ID of this semantics node.

size

Added in 1.0.0-alpha15
val sizeIntVolumeSize

The dimensions of the 3D bounding box for this node.