Provides information about a fold in a flexible display or a hinge between separate physical displays.
This class wraps the FoldingFeature API.
using UnityEngine; using UnityEngine.Android;
public class MyApplication : MonoBehaviour { public void Start() { var foldInfo = AndroidApplication.currentFoldingFeatures; if (foldInfo.Length > 0) { Debug.Log("Folding features detected:"); Debug.Log($"* bounds: {foldInfo[0].bounds}"); Debug.Log($"* occlusion: {foldInfo[0].occlusionType}"); Debug.Log($"* orientation: {foldInfo[0].orientation}"); Debug.Log($"* state: {foldInfo[0].state}"); Debug.Log($"* isSeparating: {foldInfo[0].isSeparating}"); } else { Debug.Log("Folding features are not detected"); } } }
| Property | Description |
|---|---|
| bounds | Wraps the Android method DisplayFeature.getBounds(). Read-only. |
| isSeparating | Wraps the Android method FoldingFeature.getIsSeparating(). Read-only. |
| occlusionType | Wraps the Android method FoldingFeature.getOcclusionType(). Read-only. |
| orientation | Wraps the Android method FoldingFeature.getOrientation(). Read-only. |
| state | Wraps the Android method FoldingFeature.getState(). Read-only. |