GetSystemBarsBackground()
Returns the current system bars background setting.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Android
- Assembly: UnityEngine.AndroidJNIModule
public AndroidWindowInsets.SystemBarsBackground GetSystemBarsBackground()
Returns
Type | Description |
|---|---|
| SystemBarsBackground | The current system bars background, either AndroidWindowInsets.SystemBarsBackground.Opaque or AndroidWindowInsets.SystemBarsBackground.Transparent. |
Remarks
Returns whether the system bars currently have an opaque or transparent background. Use when insets are overlapping with the application window to allow game content to show through the system bars.
TransparentExamples
using UnityEngine;using UnityEngine.Android;public class Controller : MonoBehaviour{ public void Start() { var bg = AndroidApplication.currentWindowInsets.GetSystemBarsBackground(); Debug.Log("System bars background: " + bg); }}