# currentWindowAdaptiveInfo

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable [currentWindowAdaptiveInfo](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/currentWindowAdaptiveInfo.composable#currentWindowAdaptiveInfo(kotlin.Boolean))(supportLargeAndXLargeWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Please use V2 version of this function to support L and XL width size classes. | Cmn |

## Functions

### currentWindowAdaptiveInfo

Cmn 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+function:currentWindowAdaptiveInfo) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.2.0) Deprecated in [1.3.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.3.0)

```
@Composable
fun [currentWindowAdaptiveInfo](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/currentWindowAdaptiveInfo.composable#currentWindowAdaptiveInfo(kotlin.Boolean))(supportLargeAndXLargeWidth: Boolean = false): WindowAdaptiveInfo
```

> [!CAUTION]
> **This function is deprecated.**   
> Please use V2 version of this function to support L and XL width size classes, use this instead:
>
> ```kotlin
> currentWindowAdaptiveInfoV2
> ```

Calculates and returns `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo` of the provided context. It's a convenient function that uses the default `https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass` constructor and the default `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture` calculation functions to retrieve `https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass` and `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/Posture`.

| Parameters |
|---|---|
| `supportLargeAndXLargeWidth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | `true` to support the large and extra-large window width size classes, which makes the returned `https://developer.android.com/reference/kotlin/androidx/window/core/layout/WindowSizeClass` be calculated based on the breakpoints that include large and extra-large widths. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/WindowAdaptiveInfo` of the provided context |