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


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


<h2 id="exclude-insets">exclude</h2>

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


```kotlin
fun WindowInsets.exclude(insets: WindowInsets): WindowInsets
```


Returns the values in this `WindowInsets` that are not also in `insets`. For example, if this
`WindowInsets` has a `WindowInsets.getTop` value of `10` and `insets` has a `WindowInsets.getTop`
value of `8`, the returned `WindowInsets` will have a `WindowInsets.getTop` value of `2`.

Negative values are never returned. For example if `insets` has a `WindowInsets.getTop` of `10`
and this has a `WindowInsets.getTop` of `0`, the returned `WindowInsets` will have a
`WindowInsets.getTop` value of `0`.