Function

DraggableAnchors

Create a new DraggableAnchors instance using a builder function.

DraggableAnchors

Source set: Common
public 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

Return

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: