Provides current window insets for the application.
The window insets represent the system UI elements, such as the status and navigation bars.
Note: The insets are relative to the activity's frame layout. Querying insets manually through this property is a slow operation
Additional resources: AndroidApplication.onWindowInsetsChanged.
using UnityEngine; using UnityEngine.Android;
public class Controller : MonoBehaviour { public void Start() { var insets = AndroidApplication.currentWindowInsets; Debug.Log($"NavigationBars visible " + insets.IsVisible(AndroidWindowInsets.Type.NavigationBars)); Debug.Log($"StatusBars visible " + insets.IsVisible(AndroidWindowInsets.Type.StatusBars)); } }