-
public class JSPointerDispatcherJSPointerDispatcher 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 voidonChildStartedNativeGesture(View childView, MotionEvent motionEvent, EventDispatcher eventDispatcher)voidonChildEndedNativeGesture()voidhandleMotionEvent(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)
-
-
-
-