androidx.xr.compose.subspace

Interfaces

FollowTarget

A FollowTarget can be used with androidx.xr.compose.spatial.FollowingSubspace to have a set of content follow a target such as an anchor or AR device.

SceneCoreEntitySizeAdapter

The sizing strategy used by SceneCoreEntity to control and read the size of an entity.

SpatialBoxScope

Scope for the children of SpatialBox.

SpatialColumnScope

Scope for customizing the layout of children within a SpatialColumn.

SpatialExternalSurfaceScope

SpatialExternalSurfaceScope is a scoped environment that provides the Surface associated with a SpatialExternalSurface

SpatialGltfModelSource

Defines the source for a 3D model to be rendered by the SpatialGltfModel composable.

SpatialRowScope

Scope for customizing the layout of children within a SpatialRow.

Classes

AnchorPolicy

This class is deprecated. Use SubspaceModifier.movable(movePolicy = MovePolicy.anchor()) on the Composable's modifier instead.

DragPolicy

This class is deprecated. Use SubspaceModifier.movable() on the Composable's modifier instead.

FollowBehavior

A FollowBehavior controls the motion of content as it is following another target, such as a user's head.

MovePolicy

This class is deprecated. Use SubspaceModifier.movable(movePolicy = MovePolicy.system()) or SubspaceModifier.movable(movePolicy = MovePolicy.custom()) on the Composable's modifier instead.

ResizePolicy

This class is deprecated. Use SubspaceModifier.resizable() instead.

SpatialExternalSurfaceProtection

Specifies if the Surface should be backed by android.hardware.HardwareBuffers with the USAGE_PROTECTED_CONTENT flag set.

SpatialGltfModelState

A state object that can be hoisted to observe and control a SpatialGltfModel.

SpatialGltfModelStatus

An object that describes and contains information relevant to the current loading state of the glTF model.

SpatialGltfModelStatus.Failed

The glTF model has failed to load properly.

StereoMode

Mode for SpatialExternalSurface display.

SuperSamplingPattern

Specifies the super sampling setting for this Surface.

TrackedDimensions

A set of boolean flags which determine the dimensions of movement that are tracked.

Objects

SpatialCurvedRowDefaults

Contains the default values used by SpatialCurvedRow.

SpatialGltfModelStatus.Loaded

The glTF model is fully loaded and ready to be displayed.

SpatialGltfModelStatus.Loading

The glTF model is currently loading and is not ready to be displayed.

SpatialPanelDefaults

Contains default values used by spatial panels.

Annotations

ExperimentalSpatialGltfModelApi

Marks the SpatialGltfModel APIs as experimental.

SubspaceComposable

Marks a composable function or other code element as intended for use within the context of SubspaceComposable functions.

Composables

SceneCoreEntity

A composable that attaches to a SceneCore entity and allow compose to size, position, reparent, add children, and apply modifiers to the entity.

SpatialActivityPanel

Creates a SpatialActivityPanel and launches an Activity within it.

SpatialAndroidViewPanel

Creates a SpatialAndroidViewPanel representing a 2D plane in 3D space where an Android View will be hosted.

SpatialBox

A layout composable that sizes itself to fit its content, subject to incoming constraints.

SpatialColumn

A layout composable that arranges its children in a vertical sequence.

SpatialCurvedRow

A layout composable that arranges its children in a curved horizontal sequence.

SpatialExternalSurface

A Composable that creates and owns an Android Surface into which the application can render stereo image content.

SpatialExternalSurfaceHemisphere

A Composable that creates and owns an Android Surface into which the application can render stereo image content inside a 180 degree hemisphere dome.

SpatialExternalSurfaceSphere

A Composable that creates and owns an Android Surface into which the application can render stereo image content inside a 360 degree sphere dome.

SpatialGltfModel

This composable renders a glTF or .glb model that is loaded asynchronously from the provided source.

SpatialMainPanel

A composable that renders the Activity's main window's 2D UI content, defined in androidx.activity.compose.setContent, as a panel in a Subspace.

SpatialPanel

Creates a SpatialPanel representing a 2D plane in 3D space in which an application can fill content.

SpatialRow

A layout composable that arranges its children in a horizontal sequence.

SpatialSpacer

A composable that represents an empty space layout.

rememberSpatialGltfModelState

Remembers a SpatialGltfModelState object for use with the SpatialGltfModel API.

Type aliases

SurfaceProtection

This type alias is deprecated. Use SpatialExternalSurfaceProtection instead.