OnSwipeTouchListener

usage image.setOnTouchListener(object : OnSwipeTouchListener(this@MainActivity) {

override fun onSwipeTop() { super.onSwipeTop() }

override fun onSwipeBottom() { super.onSwipeBottom() }

override fun onSwipeLeft() { super.onSwipeLeft() }

override fun onSwipeRight() { super.onSwipeRight()

} })

Constructors

Link copied to clipboard
constructor(context: Context)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun onSwipeBottom()
Link copied to clipboard
open fun onSwipeLeft()
Link copied to clipboard
open fun onSwipeRight()
Link copied to clipboard
open fun onSwipeTop()
Link copied to clipboard
open override fun onTouch(v: View, event: MotionEvent): Boolean