Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSystemBarsBackground()

Returns the current system bars background setting.
Read time 1 minuteLast updated 6 days ago

Definition

public AndroidWindowInsets.SystemBarsBackground GetSystemBarsBackground()

Returns

Remarks

Returns whether the system bars currently have an opaque or transparent background. Use
Transparent
when insets are overlapping with the application window to allow game content to show through the system bars.

Examples

using UnityEngine;using UnityEngine.Android;public class Controller : MonoBehaviour{ public void Start() { var bg = AndroidApplication.currentWindowInsets.GetSystemBarsBackground(); Debug.Log("System bars background: " + bg); }}