# AndroidFoldingFeature

> Provides information about a fold in a flexible display or a hinge between separate physical displays.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.Android](/engine/6000.7/script-reference/unityengine/android.md)
* **Assembly:** UnityEngine.AndroidJNIModule

```csharp
public class AndroidFoldingFeature
```

## Remarks

This class wraps the [FoldingFeature](https://developer.android.com/reference/androidx/window/layout/FoldingFeature) API.

## Examples

```csharp
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");
        }
    }
}
```

## Properties

| Property                                                                                                    | Description                                                              |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| [bounds](/engine/6000.7/script-reference/unityengine/android/androidfoldingfeature/bounds.md)               | Wraps the Android method `DisplayFeature.getBounds()`. Read-only.        |
| [isSeparating](/engine/6000.7/script-reference/unityengine/android/androidfoldingfeature/isseparating.md)   | Wraps the Android method `FoldingFeature.getIsSeparating()`. Read-only.  |
| [occlusionType](/engine/6000.7/script-reference/unityengine/android/androidfoldingfeature/occlusiontype.md) | Wraps the Android method `FoldingFeature.getOcclusionType()`. Read-only. |
| [orientation](/engine/6000.7/script-reference/unityengine/android/androidfoldingfeature/orientation.md)     | Wraps the Android method `FoldingFeature.getOrientation()`. Read-only.   |
| [state](/engine/6000.7/script-reference/unityengine/android/androidfoldingfeature/state.md)                 | Wraps the Android method `FoldingFeature.getState()`. Read-only.         |
