awaitEachGesture
Function
Common
suspend fun PointerInputScope.awaitEachGesture(block: suspend AwaitPointerEventScope.() -> Unit)
Repeatedly calls block
to handle gestures. If there is a CancellationException
, it will wait
until all pointers are raised before another gesture is detected, or it exits if isActive
is
false
.
block
is run within PointerInputScope.awaitPointerEventScope
and will loop entirely within
the AwaitPointerEventScope
so events will not be lost between gestures.