# DraggableAnchorsConfig

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/gestures/AnchoredDraggable.kt+class:androidx.compose.foundation.gestures.DraggableAnchorsConfig) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.6.0) Common/AllAndroid/JVM
- Cmn

  ```
  class DraggableAnchorsConfig<T : Any?>
  ```

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DraggableAnchorsConfig` stores a mutable configuration anchors, comprised of values of `https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DraggableAnchorsConfig` and corresponding `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` positions. This `https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DraggableAnchorsConfig` is used to construct an immutable `https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DraggableAnchors` instance later on.

## Summary

| ### Public constructors |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DraggableAnchorsConfig#DraggableAnchorsConfig()()` | Cmn |

| ### Public functions |
|---|---|---|
| `infix https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `T.https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DraggableAnchorsConfig#(kotlin.Any).at(kotlin.Float)(position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Set the anchor position for `https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DraggableAnchorsConfig` anchor. | Cmn |

## Public constructors

### DraggableAnchorsConfig

Cmn

```
<T : Any?> DraggableAnchorsConfig()
```

## Public functions

### T.at

Cmn Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/gestures/AnchoredDraggable.kt+function:at) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.6.0)

```
infix fun T.at(position: Float): Unit
```

Set the anchor position for `https://developer.android.com/reference/kotlin/androidx/compose/foundation/gestures/DraggableAnchorsConfig` anchor.

| Parameters |
|---|---|
| `position: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The anchor position. |