---
title: "UiMediaScope.FoldState"
description: "Describes the layout fold state of the window, typically on a foldable device."
type: "class"
lastmod: "2026-10-07"
---
## API Reference

> Source set: Common

```kotlin
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

```kotlin
public companion object
```

## Properties

### Flat

> Source set: Common

```kotlin
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

```kotlin
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.
