protected class EMVideoView.TouchListener
extends android.view.GestureDetector.SimpleOnGestureListener
implements android.view.View.OnTouchListener
Modifier and Type | Field and Description |
---|---|
protected android.view.GestureDetector |
gestureDetector |
Constructor and Description |
---|
TouchListener(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
boolean |
onSingleTapConfirmed(android.view.MotionEvent e)
Notified when a single-tap occurs.
|
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event)
Called when a touch event is dispatched to a view.
|
public boolean onTouch(android.view.View v, android.view.MotionEvent event)
android.view.View.OnTouchListener
onTouch
in interface android.view.View.OnTouchListener
v
- The view the touch event has been dispatched to.event
- The MotionEvent object containing full information about
the event.public boolean onSingleTapConfirmed(android.view.MotionEvent e)
android.view.GestureDetector.OnDoubleTapListener
Unlike GestureDetector.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.
onSingleTapConfirmed
in interface android.view.GestureDetector.OnDoubleTapListener
onSingleTapConfirmed
in class android.view.GestureDetector.SimpleOnGestureListener
e
- The down motion event of the single-tap.