Compose Unstyled 2.0 is out! Check the official announcement blog ->
Class

SubspaceTestContext

Provides the testing context used for retrieving and interacting with 3D Semantics nodes present within a Subspace spatial compose hierarchy.

Source set: Android
public class SubspaceTestContext
internal constructor(private val testRule: AndroidComposeTestRule<*, *>)

Provides the testing context used for retrieving and interacting with 3D Semantics nodes present within a Subspace spatial compose hierarchy.

This context wraps an AndroidComposeTestRule and allows SubspaceSemanticsNodeInteraction to extract spatial layout semantics, perform layout assertions, and filter specific elements in XR environments.

Last updated: