ExpandableViewState
class ExpandableViewState(initialWidth: Dp, initialHeight: Dp, initialExpanded: Boolean = false, context: Context, density: Density)
State holder for the expandable XR scene component.
The expansion/collapse animation is driven by repeatedly calling SpatialContainerUtils.resizeCurrentWindowContainer with animated width values. The Compose content itself is NOT animated; it simply reacts to the window container size changes that the system feeds back through measure/layout.
Constructors
Properties
Functions
Link copied to clipboard
Collapses the window by animating SpatialContainerUtils.resizeCurrentWindowContainer's width from the current actual position back to collapsedBaseWidthPx.
Link copied to clipboard
Expands the window by animating SpatialContainerUtils.resizeCurrentWindowContainer's width from the current actual position to collapsedBaseWidthPx + expandedPanelWidth.