DraggableAnchors

Function

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

Create a new DraggableAnchors instance using a builder function.

Parameters

builderA function with a DraggableAnchorsConfig that offers APIs to configure anchors

Returns

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