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 ffs = AndroidApplication.currentFoldingFeatures; if (ffs.Length > 0) { Debug.Log("Folding features detected:"); Debug.Log($"* bounds: {ffs[0].bounds}"); Debug.Log($"* occlusion: {ffs[0].occlusionType}"); Debug.Log($"* orientation: {ffs[0].orientation}"); Debug.Log($"* state: {ffs[0].state}"); Debug.Log($"* isSeparating: {ffs[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. |