detectFlingGesture

suspend fun detectFlingGesture(onFling: () -> Unit)

Registers an OnFlingListener and suspends until cancellation.

Parameters

onFling

called when a fling gesture is detected.