# WindowAdaptiveInfo

# WindowAdaptiveInfo

Artifact:[androidx.compose.material3.adaptive:adaptive](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/WindowAdaptiveInfo.kt+class:androidx.compose.material3.adaptive.WindowAdaptiveInfo)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  class WindowAdaptiveInfo
  ```

*** ** * ** ***

This class collects window info that affects adaptation decisions. An adaptive layout is supposed to use the info from this class to decide how the layout is supposed to be adapted.

## Summary

|                                                                                                                                                                                                                                                                                                                   ### Public constructors                                                                                                                                                                                                                                                                                                                    |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [WindowAdaptiveInfo](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo#WindowAdaptiveInfo(androidx.window.core.layout.WindowSizeClass,androidx.compose.material3.adaptive.Posture))`(` ` windowSizeClass: `[WindowSizeClass](https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass)`,` ` windowPosture: `[Posture](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture) `)` create an instance of[WindowAdaptiveInfo](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo) | Cmn |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` | Cmn |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo#hashCode())`()`                                                                                            | Cmn |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo#toString())`()`                                                                                            | Cmn |

|                                             ### Public properties                                             |
|---------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Posture](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture)         | [windowPosture](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo#windowPosture()) [Posture](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture)of the current window.             | Cmn |
| [WindowSizeClass](https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass) | [windowSizeClass](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo#windowSizeClass()) [WindowSizeClass](https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass)of the current window. | Cmn |

## Public constructors

### WindowAdaptiveInfo

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
WindowAdaptiveInfo(
    windowSizeClass: WindowSizeClass,
    windowPosture: Posture
)
```

create an instance of[WindowAdaptiveInfo](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo)  

|                                                            Parameters                                                            |
|----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|
| `windowSizeClass: `[WindowSizeClass](https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass) | [WindowSizeClass](https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass)of the current window. |
| `windowPosture: `[Posture](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture)           | [Posture](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture)of the current 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

### windowPosture

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
val windowPosture: Posture
```

[Posture](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture)of the current window.  

### windowSizeClass

Cmn  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.0.0)  

```
val windowSizeClass: WindowSizeClass
```

[WindowSizeClass](https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass)of the current window.