| Parameter | Description |
|---|---|
| type | A single inset type to query. Passing combined flags throws an ArgumentException. |
Appearance
The current appearance, either Light or Dark.
Returns the current foreground appearance of the specified inset type.
Returns whether the specified inset type currently has light or dark icons. Only a single inset type may be passed; passing combined flags throws an ArgumentException. Returns Light for AndroidWindowInsets.Type.None.
Note: Only supported on Android 11 (API 30) or later. Reports Light for AndroidWindowInsets.Type.CaptionBar on Android 11 to 14 (API 30 to 34), because caption bar appearance requires Android 15 (API 35) or later.
using UnityEngine; using UnityEngine.Android;
public class Controller : MonoBehaviour { public void Start() { var appearance = AndroidApplication.currentWindowInsets.GetAppearance(AndroidWindowInsets.Type.StatusBars); Debug.Log("Status bar appearance: " + appearance); } }