Function

resizable

When the resizable modifier is present and enabled, UI controls will be shown that allow the user to resize the element in 3D space.

resizable

Source set: Android
public fun SubspaceModifier.resizable(
    enabled: Boolean = true,
    minimumSize: DpVolumeSize = DpVolumeSize.Zero,
    maximumSize: DpVolumeSize = DpVolumeSize(Dp.Infinity, Dp.Infinity, Dp.Infinity),
    maintainAspectRatio: Boolean = false,
    resizePolicy: ResizePolicy = ResizePolicy.Default,
): SubspaceModifier

When the resizable modifier is present and enabled, UI controls will be shown that allow the user to resize the element in 3D space.

Parameters

enabled Whether resizing is enabled for this object. If false, the object cannot be resized, but any size modifications that already occurred under the current resizePolicy will remain.
minimumSize The minimum allowable size for the object, represented by a DpVolumeSize. The object cannot be scaled down beyond these dimensions. Defaults to DpVolumeSize.Zero.
maximumSize The maximum allowable size for the object, represented by a DpVolumeSize. The object cannot be scaled up beyond these dimensions. Defaults to a DpVolumeSize with all dimensions set to Dp.Infinity, meaning no upper limit by default.
maintainAspectRatio If true, the object's aspect ratio (proportions) will be preserved during resizing. If false, individual dimensions can be changed independently. Defaults to false.
resizePolicy The policy that determines how the size change is applied. Defaults to ResizePolicy.Default which automatically handles resizing under the hood.

Content updated: