Stay organized with collections
Save and categorize content based on your preferences.
abstract class SpatialShape
Base type for shapes that could be applied to spatial elements.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-13 UTC.
[null,null,["Last updated 2025-08-13 UTC."],[],[],null,["# SpatialShape\n============\n\nArtifact: [androidx.xr.compose:compose](/jetpack/androidx/releases/xr-compose) \n[View Source](https://cs.android.com/search?q=file:androidx/xr/compose/subspace/layout/SpatialShape.kt+class:androidx.xr.compose.subspace.layout.SpatialShape) \nAdded in [1.0.0-alpha06](/jetpack/androidx/releases/xr-compose#1.0.0-alpha06)\n\n\n```\nabstract class SpatialShape\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[SpatialRoundedCornerShape](/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialRoundedCornerShape) \n\n|--------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------|\n| [SpatialRoundedCornerShape](/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialRoundedCornerShape) | A shape describing a rectangle with rounded corners in 3D space. |\n\n*** ** * ** ***\n\nBase type for shapes that could be applied to spatial elements."]]