NutrientContextualToolbarDragListener

Receives drag gestures from the contextual toolbar's drag handle. The host owns the drop-zone math and actually repositions the bar (via ToolbarCoordinator.setContextualToolbarPosition) — during Phase 2 that host is the ToolbarCoordinatorLayout bridge, from Phase 4 the NutrientToolbarScaffold. Passing no listener hides the drag handle even when the state says the bar is draggable.

Functions

Link copied to clipboard
abstract fun onDragEnded()

The drag ended (finger lifted or gesture cancelled) — resolve the drop zone now.

Link copied to clipboard
abstract fun onDragged(deltaX: Float, deltaY: Float)

The pointer moved by (deltaX, deltaY) pixels since the last event.

Link copied to clipboard
abstract fun onDragStarted()

The user put a finger down on the drag handle and started dragging.