GetOverlapping()
Returns which insets are currently configured to overlap with the application window.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Android
- Assembly: UnityEngine.AndroidJNIModule
public AndroidWindowInsets.Type GetOverlapping()
Returns
Type | Description |
|---|---|
| Type | The bitmask of inset types that currently overlap with the application window. |
Remarks
Returns a bitmask of inset types that are currently overlapping. When an inset is overlapping, the application window extends behind it and _safeArea excludes the area it covers.
Examples
using UnityEngine;using UnityEngine.Android;public class Controller : MonoBehaviour{ public void Start() { var overlapping = AndroidApplication.currentWindowInsets.GetOverlapping(); Debug.Log("Status bar overlapping: " + overlapping.HasFlag(AndroidWindowInsets.Type.StatusBars)); Debug.Log("Navigation bar overlapping: " + overlapping.HasFlag(AndroidWindowInsets.Type.NavigationBars)); }}