Interface

SubspaceLayoutCoordinates

A holder of the measured bounds.

Source set: Android
public interface SubspaceLayoutCoordinates

A holder of the measured bounds.

Properties

pose

Source set: Android
public val pose: Pose

The pose of this layout in the local coordinates space, with translation in pixels.

poseInParent

Source set: Android
public val poseInParent: Pose

The pose of this layout relative to its parent in the Compose hierarchy, with translation in pixels.

poseInRoot

Source set: Android
public val poseInRoot: Pose

The pose of this layout relative to the root of the Compose for XR's hierarchy with translation values in pixels.

poseInActivitySpace

Source set: Android
public val poseInActivitySpace: Pose

The pose of this layout relative to ActivitySpace, with translation values in pixels.

parentCoordinates

Source set: Android
public val parentCoordinates: SubspaceLayoutCoordinates?

The coordinates of the immediate parent in the layout hierarchy.

For a layout, this is its parent layout. For a modifier, this is the modifier that preceded it, or the layout it is attached to if it is the first in the chain.

Returns null only for the root of the hierarchy.

parentLayoutCoordinates

Source set: Android
public val parentLayoutCoordinates: SubspaceLayoutCoordinates?

The coordinates of the nearest parent layout, skipping any intermediate modifiers.

This is useful for positioning relative to the containing layout composable, irrespective of any modifiers applied to it.

Returns null only for the root of the hierarchy.

size

Source set: Android
public val size: IntVolumeSize

The size of this layout in the local coordinates space.

This is also useful for providing the size of the node to the onGloballyPositioned subspace modifier.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: