<h2 id="spatialactivitypanel-intent-modifier-shape-dragpolicy-resizepolicy-interactionpolicy">SpatialActivityPanel</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
@Composable
@SubspaceComposable
public fun SpatialActivityPanel(
    intent: Intent,
    modifier: SubspaceModifier = SubspaceModifier,
    shape: SpatialShape = SpatialPanelDefaults.shape,
    dragPolicy: DragPolicy? = null,
    resizePolicy: ResizePolicy? = null,
    interactionPolicy: InteractionPolicy? = null,
)
```

Creates a [SpatialActivityPanel](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialActivityPanel) and launches an Activity within it.

The only supported use case for this SpatialPanel is to launch activities that are a part of the
same application.

#### Parameters

| | |
| --- | --- |
| intent | The intent of an Activity to launch within this panel. |
| modifier | SubspaceModifiers to apply to the SpatialPanel. |
| shape | The shape of this Spatial Panel. |
| dragPolicy | An optional [DragPolicy](/jetpack-compose/androidx.xr.compose/compose/classes/DragPolicy) that defines the motion behavior of the [SpatialPanel](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialPanel). This can be either a [MovePolicy](/jetpack-compose/androidx.xr.compose/compose/classes/MovePolicy) for free movement or an [AnchorPolicy](/jetpack-compose/androidx.xr.compose/compose/classes/AnchorPolicy) for anchoring to real-world surfaces. If a policy is provided, draggable UI controls will be shown, allowing the user to manipulate the panel in 3D space. If null, no motion behavior is applied. |
| resizePolicy | An optional [ResizePolicy](/jetpack-compose/androidx.xr.compose/compose/classes/ResizePolicy) configuration object that resizing behavior of this [SpatialPanel](/jetpack-compose/androidx.xr.compose/compose/composable-functions/SpatialPanel). The draggable UI controls will be shown that allow the user to resize the element in 3D space. If null, there is no resize behavior applied to the element. |
| interactionPolicy | An optional [InteractionPolicy](/jetpack-compose/androidx.xr.compose/compose/classes/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. |