FreeRDP
com.freerdp.freerdpcore.utils.DoubleGestureDetector Class Reference

Data Structures

interface  OnDoubleGestureListener
 

Public Member Functions

 DoubleGestureDetector (Context context, Handler handler, OnDoubleGestureListener listener)
 
void setScaleGestureDetector (ScaleGestureDetector scaleGestureDetector)
 
boolean onTouchEvent (MotionEvent ev)
 

Constructor & Destructor Documentation

com.freerdp.freerdpcore.utils.DoubleGestureDetector.DoubleGestureDetector ( Context  context,
Handler  handler,
OnDoubleGestureListener  listener 
)
inline

Creates a GestureDetector with the supplied listener. You may only use this constructor from a UI thread (this is the usual situation).

Parameters
contextthe application's context
listenerthe listener invoked for all the callbacks, this must not be null.
Exceptions
NullPointerExceptionif
listener
is null.
See also
android.os.Handler::Handler()

Member Function Documentation

boolean com.freerdp.freerdpcore.utils.DoubleGestureDetector.onTouchEvent ( MotionEvent  ev)
inline

Analyzes the given motion event and if applicable triggers the appropriate callbacks on the OnGestureListener supplied.

Parameters
evThe current motion event.
Returns
true if the OnGestureListener consumed the event, else false.

Here is the call graph for this function:

Here is the caller graph for this function:

void com.freerdp.freerdpcore.utils.DoubleGestureDetector.setScaleGestureDetector ( ScaleGestureDetector  scaleGestureDetector)
inline

Set scale gesture detector

Parameters
scaleGestureDetector

Here is the caller graph for this function:


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