-
public class JSPointerDispatcher
JSPointerDispatcher handles dispatching pointer events to JS from RootViews. If you implement RootView you need to call handleMotionEvent from onTouchEvent, onInterceptTouchEvent, onHoverEvent, onInterceptHoverEvent. It will correctly find the right view to handle the touch and also dispatch the appropriate event to JS
-
-
Constructor Summary
Constructors Constructor Description JSPointerDispatcher(ViewGroup viewGroup)
-
Method Summary
Modifier and Type Method Description void
onChildStartedNativeGesture(View childView, MotionEvent motionEvent, EventDispatcher eventDispatcher)
void
onChildEndedNativeGesture()
void
handleMotionEvent(MotionEvent motionEvent, EventDispatcher eventDispatcher)
-
-
Constructor Detail
-
JSPointerDispatcher
JSPointerDispatcher(ViewGroup viewGroup)
-
-
Method Detail
-
onChildStartedNativeGesture
void onChildStartedNativeGesture(View childView, MotionEvent motionEvent, EventDispatcher eventDispatcher)
-
onChildEndedNativeGesture
void onChildEndedNativeGesture()
-
handleMotionEvent
void handleMotionEvent(MotionEvent motionEvent, EventDispatcher eventDispatcher)
-
-
-
-