# PaneExpansionStateKey

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.PaneExpansionStateKey) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-material3-adaptive#1.1.0) Common/All
- Cmn

  ```
  @ExperimentalMaterial3AdaptiveApi
  sealed interface PaneExpansionStateKey
  ```

*** ** * ** ***

Interface that serves as keys to remember and retrieve `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionState` with `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/rememberPaneExpansionState.composable#rememberPaneExpansionState(androidx.compose.material3.adaptive.layout.PaneExpansionStateKeyProvider,kotlin.collections.List,kotlin.Int,androidx.compose.animation.core.FiniteAnimationSpec,androidx.compose.foundation.gestures.FlingBehavior,kotlin.Function1)`.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionStateKey` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionStateKey#Default()` The default `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionStateKey`. | Cmn |

## Public companion properties

### Default

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

```
val Default: PaneExpansionStateKey
```

The default `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionStateKey`. If you want to always share the same `https://developer.android.com/reference/kotlin/androidx/compose/material3/adaptive/layout/PaneExpansionState` no matter what current scaffold state is, this key can be used. For example if the default key is used and a user drag the list-detail layout to a 50-50 split, when the layout switches to, say, detail-extra, it will remain the 50-50 split instead of using a different (default or user-set) split for it.