Android
public class ResizePolicy(
public val isEnabled: Boolean = true,
public val minimumSize: DpVolumeSize = DpVolumeSize.Zero,
public val maximumSize: DpVolumeSize = DpVolumeSize(Dp.Infinity, Dp.Infinity, Dp.Infinity),
@get:JvmName("shouldMaintainAspectRatio") public val shouldMaintainAspectRatio: Boolean = false,
public val onResizeStart: ((IntVolumeSize) -> Unit)? = null,
public val onResizeUpdate: ((IntVolumeSize) -> Unit)? = null,
public val onResizeEnd: ((IntVolumeSize) -> Unit)? = null,
public val onSizeChange: ((IntVolumeSize) -> Boolean)? = null,
)
Defines the resizing policy for a spatial object.
This class specifies how a spatial object can be resized, including enabling/disabling resizing, setting minimum and maximum size constraints, and controlling aspect ratio maintenance.