# SetOverlapping(Type)

> Sets which insets are allowed to overlap with the application window.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Android](/engine/6000.7/script-reference/unityengine/android.md)
* **Assembly:** UnityEngine.AndroidJNIModule

```csharp
public void SetOverlapping(AndroidWindowInsets.Type type)
```

### Parameters

**** (\[Type]\(/engine/6000.7/script-reference/unityengine/android/androidwindowinsets/type)): The complete set of inset types that should overlap with the application window. Replaces the entire overlapping mask.

### Remarks

When an inset is overlapping, the application window extends behind it instead of being resized to avoid it. [\_safeArea](/engine/6000.7/script-reference/unityengine/screen/safearea.md) excludes areas covered by overlapping insets. The parameter replaces the entire overlapping mask.

**Note:** Only supported on Android 11 (API 30) or later.

### Examples

```csharp
using UnityEngine;
using UnityEngine.Android;

public class Controller : MonoBehaviour
{
    public void Start()
    {
        AndroidApplication.currentWindowInsets.SetOverlapping(AndroidWindowInsets.Type.StatusBars | AndroidWindowInsets.Type.NavigationBars);
    }
}
```
