# PaneExpansionAnchor

# PaneExpansionAnchor

Artifact:[androidx.compose.material3.adaptive:adaptive-layout](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/material3/adaptive/layout/PaneExpansionState.kt+class:androidx.compose.material3.adaptive.layout.PaneExpansionAnchor)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)
Common/All
  - Cmn  

  ```
  sealed class PaneExpansionAnchor
```  
Known direct subclasses  
[PaneExpansionAnchor.Offset](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor.Offset),[PaneExpansionAnchor.Proportion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor.Proportion)  

|------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [PaneExpansionAnchor.Offset](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor.Offset)         | [PaneExpansionAnchor](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor)implementation that specifies the anchor position based on the offset in[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp). |
| [PaneExpansionAnchor.Proportion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor.Proportion) | [PaneExpansionAnchor](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor)implementation that specifies the anchor position in the proportion of the total size of the layout at the start side of the anchor.                      |

*** ** * ** ***

The implementations of this interface represent different types of anchors of pane expansion dragging. Setting up anchors when create[PaneExpansionState](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionState)will force user dragging to snap to the set anchors after user releases the drag.

## Summary

|                                                                                                                                                                                                                                                                                              ### Nested types                                                                                                                                                                                                                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract class `[PaneExpansionAnchor.Offset](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor.Offset)` : `[PaneExpansionAnchor](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor) [PaneExpansionAnchor](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor)implementation that specifies the anchor position based on the offset in[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp). |
| `value class `[PaneExpansionAnchor.Offset.Direction](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor.Offset.Direction) Represents the direction from where the offset will be calculated.                                                                                                                                                                                                                                                                                                                                                    |
| `class `[PaneExpansionAnchor.Proportion](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor.Proportion)` : `[PaneExpansionAnchor](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor) [PaneExpansionAnchor](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor)implementation that specifies the anchor position in the proportion of the total size of the layout at the start side of the anchor.                       |

|                                                                   ### Protected constructors                                                                   |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [PaneExpansionAnchor](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor#PaneExpansionAnchor())`()` | Cmn |

|                                    ### Public properties                                     |
|----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `abstract `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [description](https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionAnchor#description()) The description of the anchor that will be used in[androidx.compose.ui.semantics.SemanticsProperties](https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/SemanticsProperties)like accessibility services. | Cmn |

## Protected constructors

### PaneExpansionAnchor

Cmn  

```
protected PaneExpansionAnchor()
```

## Public properties

### description

Cmn  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0)  

```
abstract val description: String
```

The description of the anchor that will be used in[androidx.compose.ui.semantics.SemanticsProperties](https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/SemanticsProperties)like accessibility services.