# currentWindowDpSize

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` | `@https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/ExperimentalMaterial3AdaptiveApi @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable [currentWindowDpSize](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/currentWindowDpSize.composable#currentWindowDpSize())()` **This function is deprecated.** Going to be removed in the next version. | Cmn |

## Functions

### currentWindowDpSize

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:currentWindowDpSize) 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)

```
@ExperimentalMaterial3AdaptiveApi
@Composable
fun [currentWindowDpSize](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/currentWindowDpSize.composable#currentWindowDpSize())(): DpSize
```

> [!CAUTION]
> **This function is deprecated.**   
> Going to be removed in the next version. Prefer LocalWindowInfo instead, use this instead:
>
> ```kotlin
> LocalWindowInfo.current.containerDpSize
> ```

Returns and automatically update the current window size in `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` | an `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` that represents the current window size. |