detectShoveGestures

suspend fun detectShoveGestures(onShoveBegin: (ShoveGestureDetector) -> Unit = {}, onShoveEnd: (ShoveGestureDetector) -> Unit = {}, onShove: (ShoveGestureDetector) -> Unit = {})

Registers an OnShoveListener and suspends until cancellation.

Parameters

onShoveBegin

called when the shove gesture starts.

onShove

called during the shove gesture.

onShoveEnd

called when the shove gesture ends.