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).
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: