consumeWindowInsets

Property

Android
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.

Android

Deprecated Please use AbstractComposeView.consumeWindowInsets

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.