public class JSTouchDispatcher
extends java.lang.Object
Constructor and Description |
---|
JSTouchDispatcher(android.view.ViewGroup viewGroup) |
Modifier and Type | Method and Description |
---|---|
void |
handleTouchEvent(android.view.MotionEvent ev,
EventDispatcher eventDispatcher)
Main catalyst view is responsible for collecting and sending touch events to JS.
|
void |
onChildStartedNativeGesture(android.view.MotionEvent androidEvent,
EventDispatcher eventDispatcher) |
public void onChildStartedNativeGesture(android.view.MotionEvent androidEvent, EventDispatcher eventDispatcher)
public void handleTouchEvent(android.view.MotionEvent ev, EventDispatcher eventDispatcher)
MotionEvent
) and calls into
EventDispatcher
when appropriate.
It uses TouchTargetHelper.findTouchTargetView(float[], android.view.ViewGroup)
helper method for figuring out a react view ID in the case of ACTION_DOWN
event (when the gesture starts).