-
public class ReactScrollViewHelper.ReactScrollViewScrollState
-
-
Constructor Summary
Constructors Constructor Description ReactScrollViewHelper.ReactScrollViewScrollState(int layoutDirection)
-
Method Summary
Modifier and Type Method Description int
getLayoutDirection()
Get the layout direction. Point
getFinalAnimatedPositionScroll()
Get the position after current animation is finished ReactScrollViewHelper.ReactScrollViewScrollState
setFinalAnimatedPositionScroll(int finalAnimatedPositionScrollX, int finalAnimatedPositionScrollY)
Set the final scroll position after scrolling animation is finished Point
getLastStateUpdateScroll()
Get the Fabric state of last scroll position ReactScrollViewHelper.ReactScrollViewScrollState
setLastStateUpdateScroll(int lastStateUpdateScrollX, int lastStateUpdateScrollY)
Set the Fabric state of last scroll position int
getScrollAwayPaddingTop()
Get the padding on the top for nav bar ReactScrollViewHelper.ReactScrollViewScrollState
setScrollAwayPaddingTop(int scrollAwayPaddingTop)
Set the padding on the top for nav bar boolean
getIsCanceled()
Get true if the previous animation was canceled ReactScrollViewHelper.ReactScrollViewScrollState
setIsCanceled(boolean isCanceled)
Set the state of current animation is canceled or not boolean
getIsFinished()
Get true if previous animation was finished ReactScrollViewHelper.ReactScrollViewScrollState
setIsFinished(boolean isFinished)
Set the state of current animation is finished or not float
getDecelerationRate()
Get true if previous animation was finished ReactScrollViewHelper.ReactScrollViewScrollState
setDecelerationRate(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
-
-
-
-