# UiMediaScope.WindowPosture

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.WindowPosture) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01) Common/AllAndroid/JVM
- Cmn

  ```
  @ExperimentalMediaQueryApi
  class UiMediaScope.WindowPosture
  ```

*** ** * ** ***

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 `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowPosture#isFlat()` == true.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowPosture#WindowPosture(kotlin.collections.List)(folds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold>)` | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowPosture#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowPosture#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowPosture#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowPosture#folds()` A list of all active `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold` features intersecting the window. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowPosture#isFlat()` Whether the physical footprint of the window has no active bends disrupting its surface. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowPosture#isTabletop()` Whether the device is in a semi-open tabletop state, similar to a laptop. | Cmn |

## Public constructors

### WindowPosture

Cmn Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01)

```
WindowPosture(folds: List<UiMediaScope.WindowFold>)
```

| Parameters |
|---|---|
| `folds: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold>` | A list of all active `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold` features intersecting the window. |

## Public functions

### equals

Cmn

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

Cmn

```
open fun hashCode(): Int
```

### toString

Cmn

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

## Public properties

### folds

Cmn Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01)

```
val folds: List<UiMediaScope.WindowFold>
```

A list of all active `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold` features intersecting the window.

### isFlat

Cmn Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01)

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

Cmn Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01)

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