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


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


<h2 id="only-sides">only</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun WindowInsets.only(sides: WindowInsetsSides): WindowInsets
```


Returns a `WindowInsets` that eliminates all dimensions except the ones that are enabled. For
example, to have a `WindowInsets` at the bottom of the screen, pass `WindowInsetsSides.Bottom`.