# UiMediaScope.WindowFold

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

*** ** * ** ***

Represents a single physical fold or hinge intersecting the window.

A `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.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.

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold#WindowFold(androidx.compose.ui.UiMediaScope.FoldState,androidx.compose.ui.UiMediaScope.FoldOrientation)( state: https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState, orientation: https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation )` | 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.WindowFold#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.WindowFold#hashCode()()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold#toString()()` | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold#orientation()` The axis of the fold relative to the window bounds (e.g. `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation#Horizontal()` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation#Vertical()`). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.WindowFold#state()` The geometric layout state of the fold (e.g. `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#Flat()` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#HalfOpened()`). | Cmn |

## Public constructors

### WindowFold

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

```
WindowFold(
    state: UiMediaScope.FoldState,
    orientation: UiMediaScope.FoldOrientation
)
```

| Parameters |
|---|---|
| `state: https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState` | The geometric layout state of the fold (e.g. `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#Flat()` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#HalfOpened()`). |
| `orientation: https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation` | The axis of the fold relative to the window bounds (e.g. `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation#Horizontal()` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation#Vertical()`). |

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

### orientation

Cmn

```
val orientation: UiMediaScope.FoldOrientation
```

The axis of the fold relative to the window bounds (e.g. `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation#Horizontal()` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldOrientation#Vertical()`).

### state

Cmn

```
val state: UiMediaScope.FoldState
```

The geometric layout state of the fold (e.g. `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#Flat()` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/UiMediaScope.FoldState#HalfOpened()`).