Class

DragDetectionState.AwaitGesturePickup

Alternative state that implements the gesture pick up feature.

Source set: Common
class AwaitGesturePickup(
        var initialDown: PointerInputChange? = null,
        var pointerId: PointerId = PointerId(Long.MAX_VALUE),
        var touchSlopDetector: TouchSlopDetector? = null,
    ) : DragDetectionState()

Alternative state that implements the gesture pick up feature. If a draggable loses an event because someone else consumed it, it can still pick it up later if the consumer "gives up" on that gesture. Once a gesture is lost the draggable will pass on to this state until all fingers are up.

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: