public class ReactScrollViewHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ReactScrollViewHelper.ScrollListener |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO |
static long |
MOMENTUM_DELAY |
static java.lang.String |
OVER_SCROLL_ALWAYS |
static java.lang.String |
OVER_SCROLL_NEVER |
Constructor and Description |
---|
ReactScrollViewHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addScrollListener(ReactScrollViewHelper.ScrollListener listener) |
static void |
emitLayoutEvent(android.view.ViewGroup scrollView)
This is only for Java listeners.
|
static void |
emitScrollBeginDragEvent(android.view.ViewGroup scrollView) |
static void |
emitScrollEndDragEvent(android.view.ViewGroup scrollView,
float xVelocity,
float yVelocity) |
static void |
emitScrollEvent(android.view.ViewGroup scrollView,
float xVelocity,
float yVelocity)
Shared by
ReactScrollView and ReactHorizontalScrollView . |
static void |
emitScrollMomentumBeginEvent(android.view.ViewGroup scrollView,
int xVelocity,
int yVelocity) |
static void |
emitScrollMomentumEndEvent(android.view.ViewGroup scrollView) |
static int |
getDefaultScrollAnimationDuration(android.content.Context context) |
static int |
parseOverScrollMode(java.lang.String jsOverScrollMode) |
static void |
removeScrollListener(ReactScrollViewHelper.ScrollListener listener) |
public static final long MOMENTUM_DELAY
public static final java.lang.String OVER_SCROLL_ALWAYS
public static final java.lang.String AUTO
public static final java.lang.String OVER_SCROLL_NEVER
public static void emitScrollEvent(android.view.ViewGroup scrollView, float xVelocity, float yVelocity)
ReactScrollView
and ReactHorizontalScrollView
.public static void emitScrollBeginDragEvent(android.view.ViewGroup scrollView)
public static void emitScrollEndDragEvent(android.view.ViewGroup scrollView, float xVelocity, float yVelocity)
public static void emitScrollMomentumBeginEvent(android.view.ViewGroup scrollView, int xVelocity, int yVelocity)
public static void emitScrollMomentumEndEvent(android.view.ViewGroup scrollView)
public static void emitLayoutEvent(android.view.ViewGroup scrollView)
public static int parseOverScrollMode(java.lang.String jsOverScrollMode)
public static int getDefaultScrollAnimationDuration(android.content.Context context)
public static void addScrollListener(ReactScrollViewHelper.ScrollListener listener)
public static void removeScrollListener(ReactScrollViewHelper.ScrollListener listener)