-
public class NativeGestureUtilUtilities for native Views that interpret native gestures (e.g. ScrollView, ViewPager, etc.).
-
-
Method Summary
Modifier and Type Method Description static voidnotifyNativeGestureStarted(View view, MotionEvent event)Helper method that should be called when a native view starts a native gesture (e.g. static voidnotifyNativeGestureEnded(View view, MotionEvent event)Helper method that should be called when a native view ends a native gesture (e.g. -
-
Method Detail
-
notifyNativeGestureStarted
static void notifyNativeGestureStarted(View view, MotionEvent event)
Helper method that should be called when a native view starts a native gesture (e.g. a nativeScrollView takes control of a gesture stream and starts scrolling). This will handledispatching the appropriate events to JS to make sure the gesture in JS is canceled.
- Parameters:
view- the View starting the native gestureevent- the MotionEvent that caused the gesture to be started
-
notifyNativeGestureEnded
static void notifyNativeGestureEnded(View view, MotionEvent event)
Helper method that should be called when a native view ends a native gesture (e.g. a nativeScrollView takes control of a gesture stream and starts scrolling). This will handledispatching the appropriate events to JS to make sure future gesture is not blocked.
- Parameters:
view- the View ending the native gestureevent- the MotionEvent that caused the gesture to be ended
-
-
-
-