public abstract class DragGesture
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
DragGesture.Builder<GestureType,BuilderType>
A builder, which allows to configure and create instances of the class
DragGesture . |
Modifier | Constructor and Description |
---|---|
protected |
DragGesture(int threshold,
android.graphics.RectF touchableArea)
Creates a new drag gesture, which can be used to perform certain action when dragging in a
particular direction.
|
Modifier and Type | Method and Description |
---|---|
int |
getThreshold()
Returns the distance in pixels, the gesture must last until it is recognized.
|
android.graphics.RectF |
getTouchableArea()
Returns the bounds of the onscreen area, which is taken into consideration for recognizing
the drag gesture.
|
protected DragGesture(int threshold, @Nullable android.graphics.RectF touchableArea)
threshold
- The distance in pixels, the gesture must last until it is recognized, as an Integer
value. The distance must be at least 0 or -1, if the default distance should
be usedtouchableArea
- The bounds of the onscreen area, which should be taken into consideration for
recognizing the drag gesture, as an instance of the class RectF
or null, if
the area should not be restrictedpublic final int getThreshold()
Integer
value. The distance must be at least 0 or -1, if the default distance should be used@Nullable public final android.graphics.RectF getTouchableArea()
RectF
or null, if the area is not
restricted