Function

constrain

Constrains the dimensions of this VolumeConstraints object to fit within the bounds of the other VolumeConstraints object.

constrain

Source set: Android
public fun VolumeConstraints.constrain(otherConstraints: VolumeConstraints): VolumeConstraints

Constrains the dimensions of this VolumeConstraints object to fit within the bounds of the other VolumeConstraints object.

Parameters

otherConstraints the other VolumeConstraints to constrain against.

Returns

a new VolumeConstraints object with dimensions constrained within the bounds of otherConstraints.

Last updated: