Class

UiMediaScope.FoldState

Describes the layout fold state of the window, typically on a foldable device.

Source set: Common
public class FoldState internal constructor(internal val value: Int)

Describes the layout fold state of the window, typically on a foldable device.

Members

Companion

Source set: Common
public companion object

Properties

Flat

Source set: Common
public val Flat: FoldState = FoldState(0)

Represents a flat fold state, where the window's display area on a foldable device is flat (either fully open or closed). It's the default state for non-foldable devices, or when the window does not span across a hinge or fold (such as in split-screen mode on a single panel).

HalfOpened

Source set: Common
public val HalfOpened: FoldState = FoldState(1)

Represents a device in a semi-open state. The window spans across a hinge or fold, splitting the display area into two logical parts.

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: