FreeRDP
|
Public Member Functions | |
boolean | onDown (MotionEvent e) |
boolean | onUp (MotionEvent e) |
void | onShowPress (MotionEvent e) |
boolean | onSingleTapUp (MotionEvent e) |
boolean | onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) |
void | onLongPress (MotionEvent e) |
void | onLongPressUp (MotionEvent e) |
The listener that is used to notify when gestures occur. If you want to listen for all the different gestures then implement this interface. If you only want to listen for a subset it might be easier to extend SimpleOnGestureListener
.
Definition at line 419 of file GestureDetector.java.
boolean com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.onDown | ( | MotionEvent | e | ) |
Notified when a tap occurs with the down MotionEvent
that triggered it. This will be triggered immediately for every down event. All other events should be preceded by this.
e | The down motion event. |
Implemented in com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.
Referenced by com.freerdp.freerdpcore.utils.GestureDetector.onTouchEvent().
void com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.onLongPress | ( | MotionEvent | e | ) |
Notified when a long press occurs with the initial on down MotionEvent
that triggered it.
e | The initial on down motion event that started the longpress. |
Implemented in com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.
void com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.onLongPressUp | ( | MotionEvent | e | ) |
Notified when a long press ends with the final MotionEvent
.
e | The up motion event that ended the longpress. |
Implemented in com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.
Referenced by com.freerdp.freerdpcore.utils.GestureDetector.onTouchEvent().
boolean com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.onScroll | ( | MotionEvent | e1, |
MotionEvent | e2, | ||
float | distanceX, | ||
float | distanceY | ||
) |
Notified when a scroll occurs with the initial on down MotionEvent
and the current move MotionEvent
. The distance in x and y is also supplied for convenience.
e1 | The first down motion event that started the scrolling. |
e2 | The move motion event that triggered the current onScroll. |
distanceX | The distance along the X axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 and e2 . |
distanceY | The distance along the Y axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 and e2 . |
Implemented in com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.
Referenced by com.freerdp.freerdpcore.utils.GestureDetector.onTouchEvent().
void com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.onShowPress | ( | MotionEvent | e | ) |
The user has performed a down MotionEvent
and not performed a move or up yet. This event is commonly used to provide visual feedback to the user to let them know that their action has been recognized i.e. highlight an element.
e | The down motion event |
Implemented in com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.
boolean com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.onSingleTapUp | ( | MotionEvent | e | ) |
Notified when a tap occurs with the up MotionEvent
that triggered it.
e | The up motion event that completed the first tap |
Implemented in com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.
Referenced by com.freerdp.freerdpcore.utils.GestureDetector.onTouchEvent().
boolean com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.onUp | ( | MotionEvent | e | ) |
Notified when a tap finishes with the up MotionEvent
that triggered it. This will be triggered immediately for every up event. All other events should be preceded by this.
e | The up motion event. |
Implemented in com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.
Referenced by com.freerdp.freerdpcore.utils.GestureDetector.onTouchEvent().