Interface

SubspaceSemanticsInfo

Provides semantic information about a node in the Subspace layout hierarchy.

Source set: Android
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

Source set: Android
public val semanticsId: Int

The unique ID of this semantics node.

size

Source set: Android
public val size: IntVolumeSize

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

density

Source set: Android
public val density: Density

The density of this node.

pose

Source set: Android
public val pose: Pose

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

poseInRoot

Source set: Android
public val poseInRoot: Pose

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

semanticsConfiguration

Source set: Android
public val semanticsConfiguration: SubspaceSemanticsConfiguration?

The semantics configuration of this node.

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

childrenInfo

Source set: Android
public val childrenInfo: List<SubspaceSemanticsInfo>

The children of this node in the semantics tree.

parentInfo

Source set: Android
public val parentInfo: SubspaceSemanticsInfo?

The parent of this node in the semantics tree.

isRoot

Source set: Android
public val isRoot: Boolean

Whether this node is the root of a semantics tree.

semanticsEntity

Source set: Android
public val semanticsEntity: Entity?

The Entity associated with this node.

scale

Source set: Android
public val scale: Float

The scale factor of this node relative to its parent.

components

Source set: Android
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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: