androidx.xr.compose.spatial

Interfaces

ContentEdge

An enum that represents the edges of a view where an orbiter can be placed.

OrbiterPoseProvider

Calculates the Pose of an Orbiter in 3D space relative to its spatial parent.

Classes

ContentEdge.Horizontal
ContentEdge.Vertical

Represents vertical edges (start or end).

OrbiterAnchorPoint

Represents an anchor point for an Orbiter relative to its target.

OrbiterAnchorPoint.Absolute

Provides anchor points that are not affected by LayoutDirection.

OrbiterOffsetType

Represents the type of offset used for positioning an orbiter.

SpatialDialogProperties

Properties for configuring a SpatialDialog.

Objects

OrbiterAnchorPoint.Absolute.BottomLeft

Attach the Orbiter at the left of the bottom edge of the content.

OrbiterAnchorPoint.Absolute.BottomRight

Attach the Orbiter at the right of the bottom edge of the content.

OrbiterAnchorPoint.Absolute.Left

Attach the Orbiter at the center of the left edge of the content.

OrbiterAnchorPoint.Absolute.LeftBottom

Attach the Orbiter at the bottom of the left edge of the content.

OrbiterAnchorPoint.Absolute.LeftTop

Attach the Orbiter at the top of the left edge of the content.

OrbiterAnchorPoint.Absolute.Right

Attach the Orbiter at the center of the right edge of the content.

OrbiterAnchorPoint.Absolute.RightBottom

Attach the Orbiter at the bottom of the right edge of the content.

OrbiterAnchorPoint.Absolute.RightTop

Attach the Orbiter at the top of the right edge of the content.

OrbiterAnchorPoint.Absolute.TopLeft

Attach the Orbiter at the left of the top edge of the content.

OrbiterAnchorPoint.Absolute.TopRight

Attach the Orbiter at the right of the top edge of the content.

OrbiterAnchorPoint.Bottom

Attach the Orbiter at the center of the bottom edge of the content.

OrbiterAnchorPoint.BottomEnd

Attach the Orbiter at the end of the bottom edge of the content.

OrbiterAnchorPoint.BottomStart

Attach the Orbiter at the start of the bottom edge of the content.

OrbiterAnchorPoint.End

Attach the Orbiter at the center of the end edge of the content.

OrbiterAnchorPoint.EndBottom

Attach the Orbiter at the bottom of the end edge of the content.

OrbiterAnchorPoint.EndTop

Attach the Orbiter at the top of the end edge of the content.

OrbiterAnchorPoint.Start

Attach the Orbiter at the center of the start edge of the content.

OrbiterAnchorPoint.StartBottom

Attach the Orbiter at the bottom of the start edge of the content.

OrbiterAnchorPoint.StartTop

Attach the Orbiter at the top of the start edge of the content.

OrbiterAnchorPoint.Top

Attach the Orbiter at the center of the top edge of the content.

OrbiterAnchorPoint.TopEnd

Attach the Orbiter at the end of the top edge of the content.

OrbiterAnchorPoint.TopStart

Attach the Orbiter at the start of the top edge of the content.

OrbiterDefaults

Contains default values used by Orbiters.

SpatialElevationLevel

Defines standardized resting elevation levels for spatial UI elements.

Annotations

ExperimentalFollowingSubspaceApi

Marks Subspace APIs that are experimental and likely to change or be removed in the future.

Composables

FollowingSubspace

Create a user-centric 3D space that is ideal for spatial UI content that follows a target.

Orbiter

A composable that creates an orbiter along the edge of a spatial component (e.g. androidx.xr.compose.subspace.SpatialPanel).

PlanarEmbeddedSubspace

Creates a 3D space for spatial content that is embedded within and positioned by a 2D container.

SpatialDialog

SpatialDialog is a dialog that is elevated above the activity.

SpatialElevation

Composable that creates a panel in 3D space when spatialization is enabled.

SpatialPopup

A composable that creates a panel in 3D space to hoist Popup based composables.

Subspace

Create a 3D area that the app can render spatial content into.