-
public interface Dragger.DragListener
-
-
Method Summary
Modifier and Type Method Description abstract voidonPress(float x, float y)The user has pressed within the draggable area at the given position. abstract voidonDragStart(float x, float y)The user has begun dragging. abstract voidonDragTo(float x, float y)The user has dragged to the given coordinates. abstract voidonReleasedAt(float x, float y)The user has stopped touching the drag area. abstract voidonTap()The user tapped the drag area (instead of dragging it). -
-
Method Detail
-
onPress
abstract void onPress(float x, float y)
The user has pressed within the draggable area at the given position.
- Parameters:
x- x-coordinate of the user's press (in the parent View's coordinate space)y- y-coordiante of the user's press (in the parent View's coordinate space)
-
onDragStart
abstract void onDragStart(float x, float y)
The user has begun dragging.
- Parameters:
x- x-coordinate of the user's drag start (in the parent View's coordinate space)y- y-coordiante of the user's drag start (in the parent View's coordinate space)
-
onDragTo
abstract void onDragTo(float x, float y)
The user has dragged to the given coordinates.
- Parameters:
x- x-coordinate of the user's drag (in the parent View's coordinate space)y- y-coordiante of the user's drag (in the parent View's coordinate space)
-
onReleasedAt
abstract void onReleasedAt(float x, float y)
The user has stopped touching the drag area.
- Parameters:
x- x-coordinate of the user's release (in the parent View's coordinate space)y- y-coordiante of the user's release (in the parent View's coordinate space)
-
onTap
abstract void onTap()
The user tapped the drag area (instead of dragging it).
-
-
-
-