MoveGestureDetector

Gesture detector handling move gesture.

MoveGestureDetector serves similar purpose to #onScroll(MotionEvent, MotionEvent, float, float), however, it's a ProgressiveGesture that introduces onMoveBegin, onMoveEnd, threshold with setMoveThreshold and multi finger support thanks to MoveDistancesObject.

Constructors

Link copied to clipboard
open fun MoveGestureDetector(context: Context, gesturesManager: AndroidGesturesManager)

Types

Functions

Link copied to clipboard
open fun getCurrentSpan(firstPointerIndex: Int, secondPointerIndex: Int): Float
Link copied to clipboard
open fun getCurrentSpanX(firstPointerIndex: Int, secondPointerIndex: Int): Float
Link copied to clipboard
open fun getCurrentSpanY(firstPointerIndex: Int, secondPointerIndex: Int): Float
Link copied to clipboard
open fun getMoveObject(pointerIndex: Int): MoveDistancesObject
Returns MoveDistancesObject referencing the pointer held under passed index.
Link copied to clipboard
Get the delta pixel threshold required to qualify it as a multi-finger move gesture.
Link copied to clipboard
open fun getPointersCount(): Int
Link copied to clipboard
open fun getPreviousSpan(firstPointerIndex: Int, secondPointerIndex: Int): Float
Link copied to clipboard
open fun getPreviousSpanX(firstPointerIndex: Int, secondPointerIndex: Int): Float
Link copied to clipboard
open fun getPreviousSpanY(firstPointerIndex: Int, secondPointerIndex: Int): Float
Link copied to clipboard
open fun interrupt()
Link copied to clipboard
open fun setMoveThresholdResource(@DimenRes moveThresholdDimen: Int)
Set the delta dp threshold required to qualify it as a move gesture.
Link copied to clipboard
open fun setMultiFingerMoveThreshold(multiFingerMoveThreshold: Float)
Set the delta pixel threshold required to qualify it as a multi-finger move gesture.
Link copied to clipboard
open fun setMultiFingerMoveThresholdResource(@DimenRes multiFingerMoveThresholdDimen: Int)
Set the delta dp threshold required to qualify it as a multi-finger move gesture.
Link copied to clipboard
open fun setSpanThresholdResource(spanThresholdDimen: Int)

Properties

Link copied to clipboard
Link copied to clipboard
open val focalPoint: PointF
Link copied to clipboard
Link copied to clipboard
open var isEnabled: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard