GestureDetector

open class GestureDetector(context: Context, var listener: GestureDetector.OnGestureListener?)

Detects various gestures and events using the supplied {@link MotionEvent}s.

The gesture listener callback will notify users when a particular motion event has occurred. This class should only be used with MotionEvents reported via touch (don't use for trackball events).

Responds to Android touch events with listeners.

Constructors

Link copied to clipboard
constructor(context: Context, listener: GestureDetector.OnGestureListener?)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun onTouchEvent(event: MotionEvent, hitResult: HitResult?)