-
- All Implemented Interfaces:
-
com.facebook.react.touch.OnInterceptTouchEventListener
public class JSResponderHandler implements OnInterceptTouchEventListener
This class coordinates JSResponder commands for UIManagerModule. It should be set as OnInterceptTouchEventListener for all newly created native views that implements and thanks to the information whether JSResponder is set and to which view it will correctly coordinate the return values of OnInterceptTouchEventListener such that touch events will be dispatched to the view selected by JS gesture recognizer.
Single CatalystInstance should reuse same instance of this class.
-
-
Method Summary
Modifier and Type Method Description void
setJSResponder(int tag, @Nullable() ViewParent viewParentBlockingNativeResponder)
void
clearJSResponder()
boolean
onInterceptTouchEvent(ViewGroup v, MotionEvent event)
Called when a onInterceptTouch is invoked on a view group -
-
Method Detail
-
setJSResponder
void setJSResponder(int tag, @Nullable() ViewParent viewParentBlockingNativeResponder)
-
clearJSResponder
void clearJSResponder()
-
onInterceptTouchEvent
boolean onInterceptTouchEvent(ViewGroup v, MotionEvent event)
Called when a onInterceptTouch is invoked on a view group
- Parameters:
v
- The view group the onInterceptTouch has been called onevent
- The motion event being dispatched down the hierarchy.
-
-
-
-