open fun onSwipe(callback: (ratio: Number) -> Unit): Unit
Sets swipe event listener.
callback - an event listener
callback