# SetSystemBarsBehavior(SystemBarsBehavior)

> Controls the behavior of system bars.

## Definition

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

```csharp
public void SetSystemBarsBehavior(AndroidWindowInsets.SystemBarsBehavior behavior)
```

### Parameters

**** (\[SystemBarsBehavior]\(/engine/6000.7/script-reference/unityengine/android/androidwindowinsets/systembarsbehavior)):&#x20;

### Remarks

This method allows you to configure how the system bars, such as the status and navigation bars, should respond to system gestures in your application.

**Note:** Only supported on Android 11 (API 30) or later. Has no effect on Android 10 (API 29) or earlier versions.

Additional Resources: [SystemBarsBehavior](/engine/6000.7/script-reference/unityengine/android/androidwindowinsets/systembarsbehavior.md)

### Examples

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

public class Controller : MonoBehaviour
{
    public void Start()
    {
        AndroidApplication.currentWindowInsets.SetSystemBarsBehavior(AndroidWindowInsets.SystemBarsBehavior.ShowTransientBarsBySwipe);
    }
}
```
