I want my app to recognize when a user swipes from right to left on the phone screen.
How to do this?
the usage of Edward Brey's answer in Kotlin
view.setOnTouchListener(object: OnSwipeTouchListener(this) { override fun onSwipeLeft() { super.onSwipeLeft() } override fun onSwipeRight() { super.onSwipeRight() } } )