Class

VolumeConstraints

Defines constraints for a 3D volume, specifying minimum and maximum values for width, height, and depth.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public class VolumeConstraints(
    @IntRange(from = 0) public val minWidth: Int = 0,
    @IntRange(from = 0) public val maxWidth: Int = INFINITY,
    @IntRange(from = 0) public val minHeight: Int = 0,
    @IntRange(from = 0) public val maxHeight: Int = INFINITY,
    @IntRange(from = 0) public val minDepth: Int = 0,
    @IntRange(from = 0) public val maxDepth: Int = INFINITY,
)

Defines constraints for a 3D volume, specifying minimum and maximum values for width, height, and depth.

This class is similar in concept to androidx.compose.ui.unit.Constraints, but adapted for 3D volumes.

Functions

copy

public fun copy(
        minWidth: Int = this.minWidth,
        maxWidth: Int = this.maxWidth,
        minHeight: Int = this.minHeight,
        maxHeight: Int = this.maxHeight,
        minDepth: Int = this.minDepth,
        maxDepth: Int = this.maxDepth,
    ): VolumeConstraints

Creates a copy of this VolumeConstraints object with modifications to its properties.

Parameters

minWidth the minimum allowed width in the new constraints.
maxWidth the maximum allowed width in the new constraints.
minHeight the minimum allowed height in the new constraints.
maxHeight the maximum allowed height in the new constraints.
minDepth the minimum allowed depth in the new constraints.
maxDepth the maximum allowed depth in the new constraints.

Returns

a new VolumeConstraints object with the specified modifications.

Companion Object

Properties

Android
public const val INFINITY: Int

Represents an unbounded (infinite) constraint value.