# FoldingFeature.State

# FoldingFeature.State

Artifact:[androidx.window:window](https://developer.android.com/jetpack/androidx/releases/window)  
[View Source](https://cs.android.com/search?q=file:androidx/window/layout/FoldingFeature.kt+class:androidx.window.layout.FoldingFeature.State)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/window#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/window/layout/FoldingFeature.State "View this page in Java")

<br />

```
class FoldingFeature.State
```

<br />

*** ** * ** ***

Represents the[State](https://developer.android.com/reference/kotlin/androidx/window/layout/FoldingFeature.State)of the[FoldingFeature](https://developer.android.com/reference/kotlin/androidx/window/layout/FoldingFeature).

## Summary

|                                          ### Public companion properties                                           |
|--------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [FoldingFeature.State](https://developer.android.com/reference/kotlin/androidx/window/layout/FoldingFeature.State) | [FLAT](https://developer.android.com/reference/kotlin/androidx/window/layout/FoldingFeature.State#FLAT()) The foldable device is completely open, the screen space that is presented to the user is flat.                                                                                                             |
| [FoldingFeature.State](https://developer.android.com/reference/kotlin/androidx/window/layout/FoldingFeature.State) | [HALF_OPENED](https://developer.android.com/reference/kotlin/androidx/window/layout/FoldingFeature.State#HALF_OPENED()) The foldable device's hinge is in an intermediate position between opened and closed state, there is a non-flat angle between parts of the flexible screen or between physical screen panels. |

|                                   ### Public functions                                   |
|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------|
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/window/layout/FoldingFeature.State#toString())`()` |

## Public companion properties

### FLAT

```
val FLAT: FoldingFeature.State
```

The foldable device is completely open, the screen space that is presented to the user is flat. See the[Posture](https://developer.android.com/guide/topics/ui/foldables#postures)section in the official documentation for visual samples and references.  

### HALF_OPENED

```
val HALF_OPENED: FoldingFeature.State
```

The foldable device's hinge is in an intermediate position between opened and closed state, there is a non-flat angle between parts of the flexible screen or between physical screen panels. See the[Posture](https://developer.android.com/guide/topics/ui/foldables#postures)section in the official documentation for visual samples and references.  

## Public functions

### toString

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