-
public class ReactScrollViewHelper.ReactScrollViewScrollState
-
-
Constructor Summary
Constructors Constructor Description ReactScrollViewHelper.ReactScrollViewScrollState(int layoutDirection)
-
Method Summary
Modifier and Type Method Description intgetLayoutDirection()Get the layout direction. PointgetFinalAnimatedPositionScroll()Get the position after current animation is finished ReactScrollViewHelper.ReactScrollViewScrollStatesetFinalAnimatedPositionScroll(int finalAnimatedPositionScrollX, int finalAnimatedPositionScrollY)Set the final scroll position after scrolling animation is finished PointgetLastStateUpdateScroll()Get the Fabric state of last scroll position ReactScrollViewHelper.ReactScrollViewScrollStatesetLastStateUpdateScroll(int lastStateUpdateScrollX, int lastStateUpdateScrollY)Set the Fabric state of last scroll position intgetScrollAwayPaddingTop()Get the padding on the top for nav bar ReactScrollViewHelper.ReactScrollViewScrollStatesetScrollAwayPaddingTop(int scrollAwayPaddingTop)Set the padding on the top for nav bar booleangetIsCanceled()Get true if the previous animation was canceled ReactScrollViewHelper.ReactScrollViewScrollStatesetIsCanceled(boolean isCanceled)Set the state of current animation is canceled or not booleangetIsFinished()Get true if previous animation was finished ReactScrollViewHelper.ReactScrollViewScrollStatesetIsFinished(boolean isFinished)Set the state of current animation is finished or not floatgetDecelerationRate()Get true if previous animation was finished ReactScrollViewHelper.ReactScrollViewScrollStatesetDecelerationRate(float decelerationRate)Set the state of current animation is finished or not -
-
Method Detail
-
getLayoutDirection
int getLayoutDirection()
Get the layout direction. Can be either scrollView.LAYOUT_DIRECTION_RTL (1) orscrollView.LAYOUT_DIRECTION_LTR (0). If the value is -1, it means unknown layout.
-
getFinalAnimatedPositionScroll
Point getFinalAnimatedPositionScroll()
Get the position after current animation is finished
-
setFinalAnimatedPositionScroll
ReactScrollViewHelper.ReactScrollViewScrollState setFinalAnimatedPositionScroll(int finalAnimatedPositionScrollX, int finalAnimatedPositionScrollY)
Set the final scroll position after scrolling animation is finished
-
getLastStateUpdateScroll
Point getLastStateUpdateScroll()
Get the Fabric state of last scroll position
-
setLastStateUpdateScroll
ReactScrollViewHelper.ReactScrollViewScrollState setLastStateUpdateScroll(int lastStateUpdateScrollX, int lastStateUpdateScrollY)
Set the Fabric state of last scroll position
-
getScrollAwayPaddingTop
int getScrollAwayPaddingTop()
Get the padding on the top for nav bar
-
setScrollAwayPaddingTop
ReactScrollViewHelper.ReactScrollViewScrollState setScrollAwayPaddingTop(int scrollAwayPaddingTop)
Set the padding on the top for nav bar
-
getIsCanceled
boolean getIsCanceled()
Get true if the previous animation was canceled
-
setIsCanceled
ReactScrollViewHelper.ReactScrollViewScrollState setIsCanceled(boolean isCanceled)
Set the state of current animation is canceled or not
-
getIsFinished
boolean getIsFinished()
Get true if previous animation was finished
-
setIsFinished
ReactScrollViewHelper.ReactScrollViewScrollState setIsFinished(boolean isFinished)
Set the state of current animation is finished or not
-
getDecelerationRate
float getDecelerationRate()
Get true if previous animation was finished
-
setDecelerationRate
ReactScrollViewHelper.ReactScrollViewScrollState setDecelerationRate(float decelerationRate)
Set the state of current animation is finished or not
-
-
-
-