---
title: "disableWindowInsetsRulers"
description: "Used to disable [androidx.compose.ui.layout.WindowInsetsRulers]. This can be used when UI never
reads WindowInsets across the process and having WindowInsets callbacks cause frame generation
when no content is updated. Applications typically would not use this method, but it may be
necessary for system UI. This should be called before the first [ComposeView] is created to avoid
insets calls."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
@ExperimentalComposeUiApi
fun ComposeView.Companion.disableWindowInsetsRulers()
```


Used to disable `androidx.compose.ui.layout.WindowInsetsRulers`. This can be used when UI never
reads WindowInsets across the process and having WindowInsets callbacks cause frame generation
when no content is updated. Applications typically would not use this method, but it may be
necessary for system UI. This should be called before the first `ComposeView` is created to avoid
insets calls.



