---
title: "currentWindowSize"
description: "Returns and automatically update the current window size from [WindowMetricsCalculator]."
type: "composable"
---

<div class='type'>Composable Function</div>


<a id='references'></a>

<div class='sourceset sourceset-android'>Android</div>


```kotlin
@ExperimentalMaterial3AdaptiveApi
@Composable
fun currentWindowSize(): IntSize
```


Returns and automatically update the current window size from `WindowMetricsCalculator`.

#### Returns

| | |
| --- | --- |
|  | an `IntSize` that represents the current window size. |





