---
title: "consumeWindowInsets"
description: "Indicates whether access to [WindowInsets] within the [content][ComposeView.setContent] should
consume the Android [android.view.WindowInsets]. The default value is `false`, meaning that
access to [WindowInsets.Companion] will not consume all the Android WindowInsets and instead
adjust the insets based on the position of child Views.

This property should be set prior to first composition."
type: "property"
---

<div class='type'>Property</div>


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

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


```kotlin
var AbstractComposeView.consumeWindowInsets: Boolean
```


Indicates whether access to `WindowInsets` within the `content` should
consume the Android `android.view.WindowInsets`. The default value is `false`, meaning that
access to `WindowInsets.Companion` will not consume all the Android WindowInsets and instead
adjust the insets based on the position of child Views.

This property should be set prior to first composition.



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


> **Deprecated** Please use AbstractComposeView.consumeWindowInsets

```kotlin
var ComposeView.consumeWindowInsets: Boolean
```


Indicates whether access to `WindowInsets` within the `content` should
consume the Android `android.view.WindowInsets`. The default value is `true`, meaning that access
to `WindowInsets.Companion` will consume the Android WindowInsets.

This property should be set prior to first composition.



