Function

constrainHeight

Constrains a given height value to fit within the bounds of this VolumeConstraints object.

constrainHeight

Source set: Android
public fun VolumeConstraints.constrainHeight(height: Int): Int

Constrains a given height value to fit within the bounds of this VolumeConstraints object.

Parameters

height the height value to constrain.

Returns

the constrained height value, ensuring it's within the minimum and maximum height bounds.

Last updated: