MultiFingerGesture

@UiThread
abstract class MultiFingerGesture<L> : BaseGesture<L>

Base class for all multi finger gesture detectors.

Parameters

<L>

listener that will be called with gesture events/updates.

Constructors

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

Functions

Link copied to clipboard
open fun getCurrentSpan(firstPointerIndex: Int, secondPointerIndex: Int): Float
Returns the current distance between the two pointers forming the gesture in progress.
Link copied to clipboard
open fun getCurrentSpanX(firstPointerIndex: Int, secondPointerIndex: Int): Float
Returns current X distance between pointers in pixels.
Link copied to clipboard
open fun getCurrentSpanY(firstPointerIndex: Int, secondPointerIndex: Int): Float
Returns current Y distance between pointers in pixels.
Link copied to clipboard
open fun getPointersCount(): Int
Returns the number of active pointers.
Link copied to clipboard
open fun getPreviousSpan(firstPointerIndex: Int, secondPointerIndex: Int): Float
Returns the previous distance between the two pointers forming the gesture in progress.
Link copied to clipboard
open fun getPreviousSpanX(firstPointerIndex: Int, secondPointerIndex: Int): Float
Returns previous X distance between pointers in pixels.
Link copied to clipboard
open fun getPreviousSpanY(firstPointerIndex: Int, secondPointerIndex: Int): Float
Returns previous Y distance between pointers in pixels.
Link copied to clipboard
open fun setSpanThresholdResource(@DimenRes spanThresholdDimen: Int)
Set minimum span in dp between any pair of finger that is required to pass motion events to this detector.

Properties

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

Inheritors

Link copied to clipboard
Link copied to clipboard