GetSystemBarsBackground()
Returns the current system bars background setting.
阅读时间1 分钟最后更新于 1 个月前
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); }}