# UiMediaScope.FoldState

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/MediaQuery.kt+class:androidx.compose.ui.UiMediaScope.FoldState) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01) Common/AllAndroid/JVM
- Cmn

  ```
  @ExperimentalMediaQueryApi
  value class UiMediaScope.FoldState
  ```

*** ** * ** ***

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

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#Flat()` Represents a flat fold state, where the window's display area on a foldable device is flat (either fully open or closed). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#HalfOpened()` Represents a device in a semi-open state. | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#toString()()` | Cmn |

## Public companion properties

### Flat

Cmn

```
val Flat: UiMediaScope.FoldState
```

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

Cmn

```
val HalfOpened: UiMediaScope.FoldState
```

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

## Public functions

### toString

Cmn

```
open fun toString(): String
```