---
title: "union"
description: "Returns a [WindowInsets] that has the maximum values of this [WindowInsets] and [insets]."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


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


Returns a `WindowInsets` that has the maximum values of this `WindowInsets` and `insets`.



