public class WindowPosture(public val folds: List<WindowFold>)
Represents the overall physical posture of the window, aggregating all underlying hardware folding features into a unified state.
Note that this describes the window's state, which may differ from the physical device's posture. For example, if a foldable device is physically half-opened, but the current app is in split-screen mode entirely on one side of the hinge, the window is not intersected by the hinge and its posture will evaluate as isFlat == true.
Parameters
| folds | A list of all active WindowFold features intersecting the window. |
Properties
isFlat
public val isFlat: Boolean
Whether the physical footprint of the window has no active bends disrupting its surface.
This gracefully evaluates to true for traditional non-foldable slab devices, foldables that are completely opened to 180 degrees, and multi-window apps that do not span across a hinge.
isTabletop
public val isTabletop: Boolean
Whether the device is in a semi-open tabletop state, similar to a laptop.
This evaluates to true if the window is intersected by at least one horizontal, half-opened hinge, logically splitting the horizontal display into top and bottom halves.