toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge
/
korlibs.korge.input
/
onSwipe
on
Swipe
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.