Class

UiMediaScope.WindowFold

Represents a single physical fold or hinge intersecting the window.

Source set: Common
public class WindowFold(public val state: FoldState, public val orientation: FoldOrientation)

Represents a single physical fold or hinge intersecting the window.

A WindowFold describes a geometric screen feature that actively crosses the bounds of the current window. It maps directly to the state of underlying hardware hinge sensors.

Parameters

state The geometric layout state of the fold (e.g. FoldState.Flat or FoldState.HalfOpened).
orientation The axis of the fold relative to the window bounds (e.g. FoldOrientation.Horizontal or FoldOrientation.Vertical).

Content updated: