# AndroidWindowInsets.SystemBarsBehavior

> Options for controlling the behavior of system bars, such as the status and navigation bars.

## Definition

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

```csharp
public enum AndroidWindowInsets.SystemBarsBehavior
```

## Remarks

These options determine how system gestures, such as swiping from screen edges, reveal the system bars when hidden. Use this enum with [AndroidWindowInsets.GetSystemBarsBehavior](/engine/6000.6/script-reference/unityengine/android/androidwindowinsets/getsystembarsbehavior.md) and [AndroidWindowInsets.SetSystemBarsBehavior](/engine/6000.6/script-reference/unityengine/android/androidwindowinsets/setsystembarsbehavior.md) methods to control the system bars behavior for your application window at runtime.

## Examples

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

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

## Fields

| Value                                                                                                                                              | Description                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| [Default](/engine/6000.6/script-reference/unityengine/android/androidwindowinsets/systembarsbehavior/default.md)                                   | Reveals the system bars with system gestures, such as swiping from the edge of the screen where the bar is hidden.             |
| [ShowTransientBarsBySwipe](/engine/6000.6/script-reference/unityengine/android/androidwindowinsets/systembarsbehavior/showtransientbarsbyswipe.md) | Reveals the system bars temporarily with system gestures, such as swiping from the edge of the screen where the bar is hidden. |
| [Undefined](/engine/6000.6/script-reference/unityengine/android/androidwindowinsets/systembarsbehavior/undefined.md)                               | The system bars behavior is undefined, for example, when running on unsupported Android versions, API 29 or earlier.           |
