Start native apps faster with the Composables CLI ->
Class

DpVolumeSize

Represents the size of a volume in density-independent pixels (Dp).

Source set: Android
public class DpVolumeSize(public val width: Dp, public val height: Dp, public val depth: Dp)

Represents the size of a volume in density-independent pixels (Dp).

This class provides a convenient way to store and manipulate the width, height, and depth of a 3D volume in Dp. It also provides methods to convert to and from androidx.xr.scenecore.runtime.Dimensions in meters.

Functions

toString

Source set: Android
override fun toString(): String

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

Members

Companion

Source set: Android
public companion object

Contains a common constant

Properties

Zero

Source set: Android
public val Zero: DpVolumeSize = DpVolumeSize(0.dp, 0.dp, 0.dp)

A DpVolumeSize with all dimensions set to 0.dp.