detectMoveGestures

suspend fun detectMoveGestures(onMoveBegin: (MoveGestureDetector) -> Unit = {}, onMoveEnd: (MoveGestureDetector) -> Unit = {}, onMove: (MoveGestureDetector) -> Boolean = { false })

Registers an OnMoveListener and suspends until cancellation.

Parameters

onMoveBegin

called when the move gesture starts.

onMove

called during the move gesture. Return true to consume the event.

onMoveEnd

called when the move gesture ends.