public abstract class SwipeConsumer
extends java.lang.Object
1.DIRECTION_LEFT2.DIRECTION_RIGHT3.DIRECTION_TOP4.DIRECTION_BOTTOM
To consume Motion Event via: when contentView is idle, SwipeConsumer hold the swipe motion event viatryAcceptMoving(int, float, float, float, float)In other cases, when contentView is settling, SwipeConsumer hold the swipe motion event viatryAcceptSettling(int, float, float)
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_OPEN_DISTANCE_IN_DP |
static int |
DIRECTION_ALL |
static int |
DIRECTION_BOTTOM |
static int |
DIRECTION_HORIZONTAL |
static int |
DIRECTION_LEFT |
static int |
DIRECTION_NONE |
static int |
DIRECTION_RIGHT |
static int |
DIRECTION_TOP |
static int |
DIRECTION_VERTICAL |
protected int |
mCachedSwipeDistanceX
cached distance by last swipe
|
protected int |
mCachedSwipeDistanceY
cached distance by last swipe
|
protected int |
mCurDisplayDistanceX
distance to display for subclass to show UI
these value is the calculate result by
SwipeDistanceCalculator |
protected int |
mCurDisplayDistanceY
distance to display for subclass to show UI
these value is the calculate result by
SwipeDistanceCalculator |
protected int |
mCurSwipeDistanceX
distance by current swipe
|
protected int |
mCurSwipeDistanceY
distance by current swipe
|
protected int |
mDirection
current swipe direction
|
protected boolean |
mDisableSwipeOnSettling |
protected int |
mEdgeSize
The edge pixel size for SwipeConsumer to consume touch event
|
protected int |
mEnableNested
by default: enable nested scroll and nested fly for all direction
|
protected int |
mHeight
the wrapper height, it`s value assigned via
onMeasure(int, int) |
protected android.view.animation.Interpolator |
mInterpolator
The interpolator when touch released, it would be used by
SwipeHelper.setInterpolator(Context, Interpolator) |
protected java.util.List<SwipeListener> |
mListeners |
protected java.lang.Integer |
mMaxSettleDuration |
protected int |
mOpenDistance
to open this SwipeConsumer, distance should not less than this value
|
protected boolean |
mOpenDistanceSpecified |
protected float |
mOverSwipeFactor |
protected float |
mProgress |
protected int |
mReleaseMode |
protected SwipeDistanceCalculator |
mSwipeDistanceCalculator |
protected SwipeHelper |
mSwipeHelper |
protected int |
mSwipeMaxDistance |
protected int |
mSwipeOpenDistance |
protected boolean |
mSwiping |
protected java.lang.Object |
mTag |
protected int |
mWidth
the wrapper width, it`s value assigned via
onMeasure(int, int) |
protected SmartSwipeWrapper |
mWrapper
The wrapper which this SwipeConsumer attached to, it would not be null
|
static float |
PROGRESS_CLOSE |
static float |
PROGRESS_OPEN |
static int |
RELEASE_MODE_AUTO_CLOSE |
static int |
RELEASE_MODE_AUTO_OPEN |
static int |
RELEASE_MODE_AUTO_OPEN_CLOSE |
static int |
RELEASE_MODE_HOLE_OPEN |
static int |
RELEASE_MODE_NONE |
| 构造器和说明 |
|---|
SwipeConsumer() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends SwipeConsumer> |
addConsumer(T consumer) |
SwipeConsumer |
addListener(SwipeListener listener)
add a
SwipeListener as an observer of swipe details |
SwipeConsumer |
addToExclusiveGroup(SwipeConsumerExclusiveGroup group) |
<T extends SwipeConsumer> |
as(java.lang.Class<T> clazz) |
int |
calSwipeDirection(int pointerId,
float downX,
float downY,
float dx,
float dy) |
protected boolean |
canChildScroll(android.view.ViewGroup parentView,
int direction,
int pointerId,
float downX,
float downY,
float dx,
float dy) |
int |
clampDistanceHorizontal(int distanceX,
int dx) |
int |
clampDistanceVertical(int distanceY,
int dy) |
SwipeConsumer |
close() |
SwipeConsumer |
close(boolean smooth) |
SwipeConsumer |
disableAllDirections() |
SwipeConsumer |
disableBottom() |
SwipeConsumer |
disableDirection(int direction) |
SwipeConsumer |
disableHorizontal() |
SwipeConsumer |
disableLeft() |
SwipeConsumer |
disableRight() |
SwipeConsumer |
disableTop() |
SwipeConsumer |
disableVertical() |
void |
dispatchDraw(android.graphics.Canvas canvas)
Called when Wrapper#dispatchDraw(Canvas) called
|
SwipeConsumer |
enableAllDirections() |
SwipeConsumer |
enableBottom() |
SwipeConsumer |
enableDirection(int direction) |
SwipeConsumer |
enableDirection(int direction,
boolean enable) |
SwipeConsumer |
enableHorizontal() |
SwipeConsumer |
enableLeft() |
SwipeConsumer |
enableNestedFlyAllDirections(boolean enable) |
SwipeConsumer |
enableNestedFlyBottom(boolean enable) |
SwipeConsumer |
enableNestedFlyHorizontal(boolean enable) |
SwipeConsumer |
enableNestedFlyLeft(boolean enable) |
SwipeConsumer |
enableNestedFlyRight(boolean enable) |
SwipeConsumer |
enableNestedFlyTop(boolean enable) |
SwipeConsumer |
enableNestedFlyVertical(boolean enable) |
SwipeConsumer |
enableNestedScrollAllDirections(boolean enable) |
SwipeConsumer |
enableNestedScrollBottom(boolean enable) |
SwipeConsumer |
enableNestedScrollHorizontal(boolean enable) |
SwipeConsumer |
enableNestedScrollLeft(boolean enable) |
SwipeConsumer |
enableNestedScrollRight(boolean enable) |
SwipeConsumer |
enableNestedScrollTop(boolean enable) |
SwipeConsumer |
enableNestedScrollVertical(boolean enable) |
SwipeConsumer |
enableRight() |
SwipeConsumer |
enableTop() |
SwipeConsumer |
enableVertical() |
android.view.View |
findTopChildUnder(android.view.ViewGroup parentView,
int x,
int y)
Find the topmost child under the given point within the parent view's coordinate system.
|
int |
getDirection() |
int |
getDragState() |
int |
getEdgeSize() |
int |
getHeight() |
int |
getHorizontalRange(float dx,
float dy) |
android.view.animation.Interpolator |
getInterpolator() |
java.lang.Integer |
getMaxSettleDuration() |
int |
getOpenDistance() |
float |
getOverSwipeFactor() |
float |
getProgress() |
int |
getReleaseMode() |
float |
getSensitivity() |
SwipeDistanceCalculator |
getSwipeDistanceCalculator() |
SwipeHelper |
getSwipeHelper() |
int |
getSwipeOpenDistance() |
java.lang.Object |
getTag()
Get the binding extension object
|
int |
getVerticalRange(float dx,
float dy) |
int |
getWidth() |
SmartSwipeWrapper |
getWrapper() |
protected void |
initChildrenFormXml()
init children via xml usage of
SmartSwipeWrapper |
boolean |
isAllDirectionsEnable() |
boolean |
isAllDirectionsLocked() |
boolean |
isBottomEnable() |
boolean |
isBottomLocked() |
boolean |
isClosed() |
boolean |
isDirectionEnable(int direction) |
boolean |
isDirectionLocked(int direction) |
boolean |
isDisableSwipeOnSetting() |
boolean |
isHorizontalDirection() |
boolean |
isHorizontalEnable() |
boolean |
isHorizontalLocked() |
boolean |
isLeftEnable() |
boolean |
isLeftLocked() |
protected boolean |
isNestedAndDisabled(int pointerId,
int direction) |
boolean |
isNestedFlyEnable(int direction) |
boolean |
isNestedScrollEnable(int direction) |
boolean |
isOpened() |
boolean |
isRightEnable() |
boolean |
isRightLocked() |
boolean |
isSwiping() |
boolean |
isTopEnable() |
boolean |
isTopLocked() |
boolean |
isVerticalDirection() |
boolean |
isVerticalEnable() |
boolean |
isVerticalLocked() |
boolean |
isViewUnder(android.view.View view,
int x,
int y)
Determine if the supplied view is under the given point in the
parent view's coordinate system.
|
SwipeConsumer |
lockAllDirections() |
SwipeConsumer |
lockBottom() |
SwipeConsumer |
lockDirection(int direction) |
SwipeConsumer |
lockDirection(int direction,
boolean lock) |
SwipeConsumer |
lockHorizontal() |
SwipeConsumer |
lockLeft() |
SwipeConsumer |
lockRight() |
SwipeConsumer |
lockTop() |
SwipeConsumer |
lockVertical() |
protected void |
notifyAttachToWrapper() |
protected void |
notifyDetachFromWrapper() |
protected void |
notifySwipeClosed() |
protected void |
notifySwipeOpened() |
protected void |
notifySwipeProgress(boolean settling) |
protected void |
notifySwipeRelease(float xVelocity,
float yVelocity) |
protected void |
notifySwipeStart() |
protected void |
notifySwipeStateChanged(int state) |
void |
onAttachToWrapper(SmartSwipeWrapper wrapper,
SwipeHelper swipeHelper)
Called when SwipeConsumer add to Wrapper
|
protected void |
onClosed() |
void |
onDetachFromWrapper()
Called when removed from Wrapper
|
protected abstract void |
onDisplayDistanceChanged(int distanceXToDisplay,
int distanceYToDisplay,
int dx,
int dy)
Called to refresh UI when swipe distance is changed. final value has clamped and modified by Resistor(if it not null)
|
void |
onDraw(android.graphics.Canvas canvas)
Called when Wrapper#onDraw(Canvas) called
|
boolean |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
Called when Wrapper#onLayout(boolean, int, int, int, int) called
|
void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
Called when Wrapper#onMeasure(int, int) called
|
protected void |
onOpened() |
void |
onStateChanged(int state) |
void |
onSwipeAccepted(int activePointerId,
boolean settling,
float initialMotionX,
float initialMotionY) |
void |
onSwipeDistanceChanged(int clampedDistanceX,
int clampedDistanceY,
int dx,
int dy)
The core function to change layouts
|
void |
onSwipeReleased(float xVelocity,
float yVelocity) |
SwipeConsumer |
open(boolean smooth,
int direction) |
SwipeConsumer |
removeAllListeners()
remove all
SwipeListener added via addListener(SwipeListener) |
SwipeConsumer |
removeListener(SwipeListener listener) |
protected void |
reset() |
SwipeConsumer |
setBottomOpen() |
void |
setCurrentStateAsClosed() |
SwipeConsumer |
setDisableSwipeOnSettling(boolean disable)
disable to handle swipe event via user touch when automatically swipe is processing
|
SwipeConsumer |
setEdgeSize(int edgeSize) |
SwipeConsumer |
setHeight(int height)
set height to the ui, it works before SmartSwipeWrapper.onMeasure(int, int) invoked.
|
SwipeConsumer |
setInterpolator(android.view.animation.Interpolator interpolator) |
SwipeConsumer |
setLeftOpen() |
SwipeConsumer |
setMaxSettleDuration(int maxSettleDuration) |
SwipeConsumer |
setOpenDistance(int openDistance) |
SwipeConsumer |
setOverSwipeFactor(float overSwipeFactor)
set over swipe factor.
|
SwipeConsumer |
setReleaseMode(int releaseMode)
set the mode when released (default value:
RELEASE_MODE_AUTO_CLOSE) |
SwipeConsumer |
setRightOpen() |
SwipeConsumer |
setSensitivity(float sensitivity)
set the sensitivity of swipe touch event. it should be positive.
|
SwipeConsumer |
setSwipeDistanceCalculator(SwipeDistanceCalculator calculator)
set a calculator of swipe distance.
|
SwipeConsumer |
setTag(java.lang.Object tag)
Bind an extension object if necessary
|
SwipeConsumer |
setTopOpen() |
SwipeConsumer |
setWidth(int width)
set width to the ui, it works before SmartSwipeWrapper.onMeasure(int, int) invoked.
|
SwipeConsumer |
slideTo(boolean smooth,
float progress) |
SwipeConsumer |
smoothBottomOpen() |
SwipeConsumer |
smoothClose() |
SwipeConsumer |
smoothLeftOpen() |
protected void |
smoothOpenOrClose(float xVelocity,
float yVelocity) |
SwipeConsumer |
smoothRightOpen() |
SwipeConsumer |
smoothSlideTo(float progress) |
void |
smoothSlideTo(int finalX,
int finalY) |
void |
smoothSlideTo(int startX,
int startY,
int finalX,
int finalY) |
SwipeConsumer |
smoothTopOpen() |
boolean |
tryAcceptMoving(int pointerId,
float downX,
float downY,
float dx,
float dy) |
boolean |
tryAcceptSettling(int pointerId,
float downX,
float downY)
always swipe by default when settling
|
SwipeConsumer |
unlockAllDirections() |
SwipeConsumer |
unlockBottom() |
SwipeConsumer |
unlockDirection(int direction) |
SwipeConsumer |
unlockHorizontal() |
SwipeConsumer |
unlockLeft() |
SwipeConsumer |
unlockRight() |
SwipeConsumer |
unlockTop() |
SwipeConsumer |
unlockVertical() |
public static int DEFAULT_OPEN_DISTANCE_IN_DP
public static final int DIRECTION_NONE
public static final int DIRECTION_LEFT
public static final int DIRECTION_RIGHT
public static final int DIRECTION_TOP
public static final int DIRECTION_BOTTOM
public static final int DIRECTION_HORIZONTAL
public static final int DIRECTION_VERTICAL
public static final int DIRECTION_ALL
public static final int RELEASE_MODE_NONE
public static final int RELEASE_MODE_AUTO_CLOSE
public static final int RELEASE_MODE_AUTO_OPEN
public static final int RELEASE_MODE_AUTO_OPEN_CLOSE
public static final int RELEASE_MODE_HOLE_OPEN
protected SmartSwipeWrapper mWrapper
public static final float PROGRESS_CLOSE
public static final float PROGRESS_OPEN
protected int mDirection
protected int mCachedSwipeDistanceX
protected int mCachedSwipeDistanceY
protected int mCurSwipeDistanceX
protected int mCurSwipeDistanceY
protected int mSwipeOpenDistance
protected boolean mOpenDistanceSpecified
protected int mSwipeMaxDistance
protected int mCurDisplayDistanceX
SwipeDistanceCalculatorSwipeDistanceCalculatorprotected int mCurDisplayDistanceY
SwipeDistanceCalculatorSwipeDistanceCalculatorprotected float mProgress
protected volatile boolean mSwiping
protected SwipeHelper mSwipeHelper
protected android.view.animation.Interpolator mInterpolator
SwipeHelper.setInterpolator(Context, Interpolator)protected int mEdgeSize
protected int mReleaseMode
protected final java.util.List<SwipeListener> mListeners
protected int mOpenDistance
protected float mOverSwipeFactor
protected SwipeDistanceCalculator mSwipeDistanceCalculator
protected boolean mDisableSwipeOnSettling
protected java.lang.Object mTag
protected java.lang.Integer mMaxSettleDuration
protected int mEnableNested
protected int mWidth
onMeasure(int, int)protected int mHeight
onMeasure(int, int)public boolean tryAcceptSettling(int pointerId,
float downX,
float downY)
pointerId - pointer iddownX - motion event x for pointerIddownY - motion event y for pointerIdpublic boolean tryAcceptMoving(int pointerId,
float downX,
float downY,
float dx,
float dy)
public int calSwipeDirection(int pointerId,
float downX,
float downY,
float dx,
float dy)
protected boolean isNestedAndDisabled(int pointerId,
int direction)
protected boolean canChildScroll(android.view.ViewGroup parentView,
int direction,
int pointerId,
float downX,
float downY,
float dx,
float dy)
public void onSwipeAccepted(int activePointerId,
boolean settling,
float initialMotionX,
float initialMotionY)
public void onSwipeReleased(float xVelocity,
float yVelocity)
protected void smoothOpenOrClose(float xVelocity,
float yVelocity)
public void setCurrentStateAsClosed()
protected void notifySwipeOpened()
protected void notifySwipeClosed()
protected void notifyAttachToWrapper()
protected void notifyDetachFromWrapper()
protected void notifySwipeStateChanged(int state)
protected void notifySwipeStart()
protected void notifySwipeRelease(float xVelocity,
float yVelocity)
protected void notifySwipeProgress(boolean settling)
public int getHorizontalRange(float dx,
float dy)
public int getVerticalRange(float dx,
float dy)
public int clampDistanceHorizontal(int distanceX,
int dx)
public int clampDistanceVertical(int distanceY,
int dy)
public void onSwipeDistanceChanged(int clampedDistanceX,
int clampedDistanceY,
int dx,
int dy)
clampedDistanceX - swipe horizontal distance clamped via clampDistanceHorizontal(int, int)clampedDistanceY - swipe vertical distance clamped via clampDistanceVertical(int, int)dx - delta x distance from last calldy - delta y distance from last callclampDistanceHorizontal(int, int),
clampDistanceVertical(int, int)protected abstract void onDisplayDistanceChanged(int distanceXToDisplay,
int distanceYToDisplay,
int dx,
int dy)
distanceXToDisplay - distance changed in pixels along the X axis to show UIdistanceYToDisplay - distance changed in pixels along the Y axis to show UIdx - Change in X position from the last calldy - Change in Y position from the last callSwipeDistanceCalculatorpublic void onAttachToWrapper(SmartSwipeWrapper wrapper, SwipeHelper swipeHelper)
wrapper - Wrapper to add toswipeHelper - SwipeHelper bind to this SwipeConsumerprotected void initChildrenFormXml()
SmartSwipeWrapperDrawerConsumer,
SlidingConsumerpublic void onDetachFromWrapper()
public void dispatchDraw(android.graphics.Canvas canvas)
canvas - canvaspublic void onDraw(android.graphics.Canvas canvas)
canvas - canvaspublic void onMeasure(int widthMeasureSpec,
int heightMeasureSpec)
widthMeasureSpec - widthMeasureSpecheightMeasureSpec - heightMeasureSpecpublic boolean onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
changed - changed or notleft - left positiontop - top positionright - right positionbottom - bottom positionpublic boolean isViewUnder(android.view.View view,
int x,
int y)
view - Child view of the parent to hit testx - X position to test in the parent's coordinate systemy - Y position to test in the parent's coordinate systempublic android.view.View findTopChildUnder(android.view.ViewGroup parentView,
int x,
int y)
parentView - the parent viewx - X position to test in the parent's coordinate systemy - Y position to test in the parent's coordinate systempublic void onStateChanged(int state)
protected void onOpened()
protected void onClosed()
protected void reset()
public android.view.animation.Interpolator getInterpolator()
public SwipeConsumer setInterpolator(android.view.animation.Interpolator interpolator)
public float getSensitivity()
public SwipeConsumer setSensitivity(float sensitivity)
sensitivity - more bigger more sensitivitypublic int getReleaseMode()
public SwipeConsumer setReleaseMode(int releaseMode)
RELEASE_MODE_AUTO_CLOSE)releaseMode - RELEASE_MODE_NONE
/ RELEASE_MODE_AUTO_CLOSE
/ RELEASE_MODE_AUTO_OPEN
/ RELEASE_MODE_AUTO_OPEN_CLOSE
/ RELEASE_MODE_HOLE_OPENpublic int getEdgeSize()
public SwipeConsumer setEdgeSize(int edgeSize)
public SmartSwipeWrapper getWrapper()
public SwipeHelper getSwipeHelper()
public int getDragState()
public float getProgress()
public boolean isSwiping()
public int getSwipeOpenDistance()
public int getOpenDistance()
public SwipeConsumer setOpenDistance(int openDistance)
public SwipeConsumer removeAllListeners()
SwipeListener added via addListener(SwipeListener)addListener(SwipeListener)public SwipeConsumer removeListener(SwipeListener listener)
public SwipeConsumer addListener(SwipeListener listener)
SwipeListener as an observer of swipe detailslistener - will be called when swipe event happensSwipeListener,
SimpleSwipeListenerpublic SwipeConsumer setSwipeDistanceCalculator(SwipeDistanceCalculator calculator)
calculator - calculatorSwipeDistanceCalculator,
ScaledCalculatorpublic SwipeDistanceCalculator getSwipeDistanceCalculator()
public boolean isDisableSwipeOnSetting()
public SwipeConsumer setDisableSwipeOnSettling(boolean disable)
disable - disable or notpublic float getOverSwipeFactor()
public SwipeConsumer setOverSwipeFactor(float overSwipeFactor)
getSwipeOpenDistance() * (1 + overSwipeFactor)overSwipeFactor - over swipe factorpublic java.lang.Object getTag()
public SwipeConsumer setTag(java.lang.Object tag)
tag - The extension objectpublic java.lang.Integer getMaxSettleDuration()
public SwipeConsumer setMaxSettleDuration(int maxSettleDuration)
public int getWidth()
public SwipeConsumer setWidth(int width)
onMeasure(int, int)width - the width of SmartSwipeWrapperpublic int getHeight()
public SwipeConsumer setHeight(int height)
onMeasure(int, int)height - the height of SmartSwipeWrapperpublic SwipeConsumer setLeftOpen()
public SwipeConsumer setRightOpen()
public SwipeConsumer setTopOpen()
public SwipeConsumer setBottomOpen()
public SwipeConsumer smoothLeftOpen()
public SwipeConsumer smoothRightOpen()
public SwipeConsumer smoothTopOpen()
public SwipeConsumer smoothBottomOpen()
public SwipeConsumer open(boolean smooth, int direction)
public SwipeConsumer close()
public SwipeConsumer smoothClose()
public SwipeConsumer close(boolean smooth)
public SwipeConsumer smoothSlideTo(float progress)
public SwipeConsumer slideTo(boolean smooth, float progress)
public SwipeConsumer addToExclusiveGroup(SwipeConsumerExclusiveGroup group)
public int getDirection()
public SwipeConsumer enableDirection(int direction, boolean enable)
public SwipeConsumer enableLeft()
public SwipeConsumer enableRight()
public SwipeConsumer enableTop()
public SwipeConsumer enableBottom()
public SwipeConsumer enableHorizontal()
public SwipeConsumer enableVertical()
public SwipeConsumer enableAllDirections()
public SwipeConsumer disableLeft()
public SwipeConsumer disableRight()
public SwipeConsumer disableTop()
public SwipeConsumer disableBottom()
public SwipeConsumer disableHorizontal()
public SwipeConsumer disableVertical()
public SwipeConsumer disableAllDirections()
public SwipeConsumer enableDirection(int direction)
public SwipeConsumer disableDirection(int direction)
public boolean isDirectionEnable(int direction)
public boolean isAllDirectionsEnable()
public boolean isVerticalEnable()
public boolean isHorizontalEnable()
public boolean isLeftEnable()
public boolean isRightEnable()
public boolean isTopEnable()
public boolean isBottomEnable()
public SwipeConsumer lockDirection(int direction, boolean lock)
public SwipeConsumer lockLeft()
public SwipeConsumer lockRight()
public SwipeConsumer lockTop()
public SwipeConsumer lockBottom()
public SwipeConsumer lockHorizontal()
public SwipeConsumer lockVertical()
public SwipeConsumer lockAllDirections()
public SwipeConsumer unlockLeft()
public SwipeConsumer unlockRight()
public SwipeConsumer unlockTop()
public SwipeConsumer unlockBottom()
public SwipeConsumer unlockHorizontal()
public SwipeConsumer unlockVertical()
public SwipeConsumer unlockAllDirections()
public SwipeConsumer lockDirection(int direction)
public SwipeConsumer unlockDirection(int direction)
public boolean isDirectionLocked(int direction)
public boolean isAllDirectionsLocked()
public boolean isVerticalLocked()
public boolean isHorizontalLocked()
public boolean isLeftLocked()
public boolean isRightLocked()
public boolean isTopLocked()
public boolean isBottomLocked()
public SwipeConsumer enableNestedScrollLeft(boolean enable)
public SwipeConsumer enableNestedScrollRight(boolean enable)
public SwipeConsumer enableNestedScrollTop(boolean enable)
public SwipeConsumer enableNestedScrollBottom(boolean enable)
public SwipeConsumer enableNestedScrollHorizontal(boolean enable)
public SwipeConsumer enableNestedScrollVertical(boolean enable)
public SwipeConsumer enableNestedScrollAllDirections(boolean enable)
public boolean isNestedScrollEnable(int direction)
public SwipeConsumer enableNestedFlyLeft(boolean enable)
public SwipeConsumer enableNestedFlyRight(boolean enable)
public SwipeConsumer enableNestedFlyTop(boolean enable)
public SwipeConsumer enableNestedFlyBottom(boolean enable)
public SwipeConsumer enableNestedFlyHorizontal(boolean enable)
public SwipeConsumer enableNestedFlyVertical(boolean enable)
public SwipeConsumer enableNestedFlyAllDirections(boolean enable)
public boolean isNestedFlyEnable(int direction)
public boolean isVerticalDirection()
public boolean isHorizontalDirection()
public void smoothSlideTo(int startX,
int startY,
int finalX,
int finalY)
public void smoothSlideTo(int finalX,
int finalY)
public boolean isOpened()
public boolean isClosed()
public <T extends SwipeConsumer> T as(java.lang.Class<T> clazz)
public <T extends SwipeConsumer> T addConsumer(T consumer)