onSwipe

inline fun <T : View?> T.onSwipe(noinline handler: suspend (GestureEvents) -> Unit): T?


fun <T : View> T.onSwipe(threshold: Double = -1.0, direction: SwipeDirection? = null, callback: suspend Views.(SwipeInfo) -> Unit): T

This methods lets you specify a callback to execute when swipe event is triggered.