public interface ReactInterceptingViewGroup
ViewGroup
subviews that can be instantiating
by NativeViewHierarchyManager
. It is used to configure onInterceptTouch event listener
which then is used to control touch event flow in cases in which they requested to be intercepted
by some parent view based on a JS gesture detector.Modifier and Type | Method and Description |
---|---|
void |
setOnInterceptTouchEventListener(OnInterceptTouchEventListener listener)
A
ViewGroup instance that implement this interface is responsible for storing the
listener passed as an argument and then calling OnInterceptTouchEventListener.onInterceptTouchEvent(android.view.ViewGroup, android.view.MotionEvent) from ViewGroup.onInterceptTouchEvent(android.view.MotionEvent) and returning the result. |
void setOnInterceptTouchEventListener(OnInterceptTouchEventListener listener)
ViewGroup
instance that implement this interface is responsible for storing the
listener passed as an argument and then calling OnInterceptTouchEventListener.onInterceptTouchEvent(android.view.ViewGroup, android.view.MotionEvent)
from ViewGroup.onInterceptTouchEvent(android.view.MotionEvent)
and returning the result. If some custom handling of this
method apply for the view, it should be called after the listener returns and only in a case
when it returns false.listener
- A callback that ViewGroup
should delegate calls for ViewGroup.onInterceptTouchEvent(android.view.MotionEvent)
to