Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.

getEventTime

getFocusX

Get the X coordinate of the current gesture's focal point.
If a gesture is in progress, the focal point is between
each of the pointers forming the gesture.
If isInProgress() would return false, the result of this
function is undefined.

Returns

float

X coordinate of the focal point in pixels.

getFocusY

Get the Y coordinate of the current gesture's focal point.
If a gesture is in progress, the focal point is between
each of the pointers forming the gesture.
If isInProgress() would return false, the result of this
function is undefined.

onTouchEvent

Applications should pass a complete and consistent event stream to this method.
A complete and consistent event stream involves all MotionEvents from the initial
ACTION_DOWN to the final ACTION_UP or ACTION_CANCEL.

Parameters

event

MotionEvent:
The event to process

Returns

boolean

true if the event was processed and the detector wants to receive the
rest of the MotionEvents in this event stream.

setQuickScaleEnabled

Set whether the associated ScaleGestureDetector.OnScaleGestureListener should receive onScale callbacks
when the user performs a doubleTap followed by a swipe. Note that this is enabled by default
if the app targets API 19 and newer.

Parameters

scales

boolean:
true to enable quick scaling, false to disable

setStylusScaleEnabled

Sets whether the associates ScaleGestureDetector.OnScaleGestureListener should receive
onScale callbacks when the user uses a stylus and presses the button.
Note that this is enabled by default if the app targets API 23 and newer.