FreeRDP
com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener Class Reference
Inheritance diagram for com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener:
Collaboration diagram for com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener:

Public Member Functions

boolean onSingleTapUp (MotionEvent e)
 
void onLongPress (MotionEvent e)
 
void onLongPressUp (MotionEvent e)
 
boolean onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
 
void onShowPress (MotionEvent e)
 
boolean onDown (MotionEvent e)
 
boolean onUp (MotionEvent e)
 
boolean onDoubleTap (MotionEvent e)
 
boolean onDoubleTapEvent (MotionEvent e)
 
boolean onSingleTapConfirmed (MotionEvent e)
 

Detailed Description

A convenience class to extend when you only want to listen for a subset of all the gestures. This implements all methods in the OnGestureListener and OnDoubleTapListener but does nothing and return

false

for all applicable methods.

Member Function Documentation

◆ onDoubleTap()

boolean com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onDoubleTap ( MotionEvent  e)
inline

Notified when a double-tap occurs.

Parameters
eThe down motion event of the first tap of the double-tap.
Returns
true if the event is consumed, else false

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnDoubleTapListener.

◆ onDoubleTapEvent()

boolean com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onDoubleTapEvent ( MotionEvent  e)
inline

Notified when an event within a double-tap gesture occurs, including the down, move, and up events.

Parameters
eThe motion event that occurred during the double-tap gesture.
Returns
true if the event is consumed, else false

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnDoubleTapListener.

◆ onDown()

boolean com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onDown ( MotionEvent  e)
inline

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.

Parameters
eThe down motion event.

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.

◆ onLongPress()

void com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onLongPress ( MotionEvent  e)
inline

Notified when a long press occurs with the initial on down MotionEvent that trigged it.

Parameters
eThe initial on down motion event that started the longpress.

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.

◆ onLongPressUp()

void com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onLongPressUp ( MotionEvent  e)
inline

Notified when a long press ends with the final MotionEvent.

Parameters
eThe up motion event that ended the longpress.

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.

◆ onScroll()

boolean com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onScroll ( MotionEvent  e1,
MotionEvent  e2,
float  distanceX,
float  distanceY 
)
inline

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.

Parameters
e1The first down motion event that started the scrolling.
e2The move motion event that triggered the current onScroll.
distanceXThe distance along the X axis that has been scrolled since the last call to onScroll. This is NOT the distance between
e1
and
e2
.
distanceYThe distance along the Y axis that has been scrolled since the last call to onScroll. This is NOT the distance between
e1
and
e2
.
Returns
true if the event is consumed, else false

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.

◆ onShowPress()

void com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onShowPress ( MotionEvent  e)
inline

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.

Parameters
eThe down motion event

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.

◆ onSingleTapConfirmed()

boolean com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onSingleTapConfirmed ( MotionEvent  e)
inline

Notified when a single-tap occurs.

Unlike OnGestureListener#onSingleTapUp(MotionEvent), this will only be called after the detector is confident that the user's first tap is not followed by a second tap leading to a double-tap gesture.

Parameters
eThe down motion event of the single-tap.
Returns
true if the event is consumed, else false

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnDoubleTapListener.

◆ onSingleTapUp()

boolean com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onSingleTapUp ( MotionEvent  e)
inline

Notified when a tap occurs with the up MotionEvent that triggered it.

Parameters
eThe up motion event that completed the first tap
Returns
true if the event is consumed, else false

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.

◆ onUp()

boolean com.freerdp.freerdpcore.utils.GestureDetector.SimpleOnGestureListener.onUp ( MotionEvent  e)
inline

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.

Parameters
eThe up motion event.

Implements com.freerdp.freerdpcore.utils.GestureDetector.OnGestureListener.


The documentation for this class was generated from the following file: