<div class='type'>Function</div>


<a id='references'></a>


<h2 id="draggableanchors-builder">DraggableAnchors</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun <T : Any> DraggableAnchors(builder: DraggableAnchorsConfig<T>.() -> Unit): DraggableAnchors<T>
```


Create a new `DraggableAnchors` instance using a builder function.

#### Parameters

| | |
| --- | --- |
| builder | A function with a `DraggableAnchorsConfig` that offers APIs to configure anchors |


#### Returns

| | |
| --- | --- |
|  | A new `DraggableAnchors` instance with the anchor positions set by the `builder` function. |