# GetSystemBarsBehavior()

> Retrieves the configured behavior of system bars, such as status and navigation bars.

## Definition

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

```csharp
public AndroidWindowInsets.SystemBarsBehavior GetSystemBarsBehavior()
```

### Returns

| Type                                                                                                                | Description |
| ------------------------------------------------------------------------------------------------------------------- | ----------- |
| [SystemBarsBehavior](/engine/6000.7/script-reference/unityengine/android/androidwindowinsets/systembarsbehavior.md) |             |

### Remarks

This behavior determines how system gestures reveal the system bars when hidden at runtime.

### Examples

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

public class Controller : MonoBehaviour
{
    public void Start()
    {
        Debug.Log("SystemBarsBehavior: " + AndroidApplication.currentWindowInsets.GetSystemBarsBehavior());
    }
}
```
