Start native apps faster with the Composables CLI ->
Class

MovePolicy

Defines the movement policy for a spatial object.

Source set: Android
@Deprecated(
    message =
        "Use SubspaceModifier.movable(movePolicy = MovePolicy.system()) or SubspaceModifier.movable(movePolicy = MovePolicy.custom()) on the Composable's modifier instead."
)
public class MovePolicy(
    public val isEnabled: Boolean = true,
    public val isStickyPose: Boolean = false,
    @get:JvmName("shouldScaleWithDistance") public val shouldScaleWithDistance: Boolean = true,
    public val onMoveStart: ((SpatialMoveEvent) -> Unit)? = null,
    public val onMoveEnd: ((SpatialMoveEvent) -> Unit)? = null,
    public val onMove: ((SpatialMoveEvent) -> Boolean)? = null,
) : DragPolicy()

Defines the movement policy for a spatial object.

This class configures how a spatial object can be moved by user interaction or programmatic changes. It provides options for enabling/disabling movement, controlling "stickiness" to its current pose, and defining callbacks for various stages of the move operation.

Functions

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

toString

Source set: Android
override fun toString(): String