SpatialPanel
Source set: Android
@Composable
public fun SpatialPanel(
modifier: SubspaceModifier = SubspaceModifier,
shape: SpatialShape = SpatialPanelDefaults.shape,
interactionPolicy: InteractionPolicy? = null,
content: @Composable @UiComposable () -> Unit,
)
Creates a SpatialPanel representing a 2D plane in 3D space in which an application can fill content.
Parameters
| modifier | SubspaceModifiers to apply to the SpatialPanel. The depth field in size-based modifiers affects this panel's layout size, but will not affect how the panel is rendered. The rendered shape will be a flat rectangle that is positioned on the front face of the rectangular prism created by the layout size. |
| shape | The shape of this Spatial Panel. |
| interactionPolicy | An optional InteractionPolicy that can be set to detect 3D input events. Setting this will not intercept 2D input events and is intended to provide additional spatial input information. |
| content | The composable content to render within the SpatialPanel. |