public interface IPullToRefresh<T extends android.view.View>
| Modifier and Type | Method and Description |
|---|---|
boolean |
demo()
Demos the Pull-to-Refresh functionality to the user so that they are
aware it is there.
|
PullToRefreshBase.Mode |
getCurrentMode()
Get the mode that this view is currently in.
|
boolean |
getFilterTouchEvents()
Returns whether the Touch Events are filtered or not.
|
ILoadingLayout |
getLoadingLayoutProxy()
Returns a proxy object which allows you to call methods on all of the
LoadingLayouts (the Views which show when Pulling/Refreshing).
|
ILoadingLayout |
getLoadingLayoutProxy(boolean includeStart,
boolean includeEnd)
Returns a proxy object which allows you to call methods on the
LoadingLayouts (the Views which show when Pulling/Refreshing).
|
PullToRefreshBase.Mode |
getMode()
Get the mode that this view has been set to.
|
T |
getRefreshableView()
Get the Wrapped Refreshable View.
|
boolean |
getShowViewWhileRefreshing()
Get whether the 'Refreshing' View should be automatically shown when
refreshing.
|
PullToRefreshBase.State |
getState() |
boolean |
isPullToRefreshEnabled()
Whether Pull-to-Refresh is enabled
|
boolean |
isPullToRefreshOverScrollEnabled()
Gets whether Overscroll support is enabled.
|
boolean |
isRefreshing()
Returns whether the Widget is currently in the Refreshing mState
|
boolean |
isScrollingWhileRefreshingEnabled()
Returns whether the widget has enabled scrolling on the Refreshable View
while refreshing.
|
void |
onRefreshComplete()
Mark the current Refresh as complete.
|
void |
setFilterTouchEvents(boolean filterEvents)
Set the Touch Events to be filtered or not.
|
void |
setMode(PullToRefreshBase.Mode mode)
Set the mode of Pull-to-Refresh that this view will use.
|
void |
setOnPullEventListener(PullToRefreshBase.OnPullEventListener<T> listener)
Set OnPullEventListener for the Widget
|
void |
setOnRefreshListener(PullToRefreshBase.OnRefreshListener<T> listener)
Set OnRefreshListener for the Widget
|
void |
setOnRefreshListener(PullToRefreshBase.OnRefreshListener2<T> listener)
Set OnRefreshListener for the Widget
|
void |
setPullToRefreshOverScrollEnabled(boolean enabled)
Sets whether Overscroll support is enabled.
|
void |
setRefreshing()
Sets the Widget to be in the refresh state.
|
void |
setRefreshing(boolean doScroll)
Sets the Widget to be in the refresh state.
|
void |
setScrollAnimationInterpolator(android.view.animation.Interpolator interpolator)
Sets the Animation Interpolator that is used for animated scrolling.
|
void |
setScrollingWhileRefreshingEnabled(boolean scrollingWhileRefreshingEnabled)
By default the Widget disables scrolling on the Refreshable View while
refreshing.
|
void |
setShowViewWhileRefreshing(boolean showView)
A mutator to enable/disable whether the 'Refreshing' View should be
automatically shown when refreshing.
|
boolean demo()
PullToRefreshBase.Mode getCurrentMode()
Mode.BOTH.boolean getFilterTouchEvents()
ILoadingLayout getLoadingLayoutProxy()
ILoadingLayout getLoadingLayoutProxy(boolean includeStart, boolean includeEnd)
includeStart - - Whether to include the Start/Header ViewsincludeEnd - - Whether to include the End/Footer ViewsPullToRefreshBase.Mode getMode()
Mode.BOTH, you can use getCurrentMode() to
check which mode the view is currently inT getRefreshableView()
boolean getShowViewWhileRefreshing()
PullToRefreshBase.State getState()
boolean isPullToRefreshEnabled()
boolean isPullToRefreshOverScrollEnabled()
boolean isRefreshing()
boolean isScrollingWhileRefreshingEnabled()
void onRefreshComplete()
void setFilterTouchEvents(boolean filterEvents)
filterEvents - - true if you want to filter Touch Events. Default is
true.void setMode(PullToRefreshBase.Mode mode)
mode - - Mode to set the View tovoid setOnPullEventListener(PullToRefreshBase.OnPullEventListener<T> listener)
listener - - Listener to be used when the Widget has a pull event to
propogate.void setOnRefreshListener(PullToRefreshBase.OnRefreshListener<T> listener)
listener - - Listener to be used when the Widget is set to Refreshvoid setOnRefreshListener(PullToRefreshBase.OnRefreshListener2<T> listener)
listener - - Listener to be used when the Widget is set to Refreshvoid setPullToRefreshOverScrollEnabled(boolean enabled)
enabled - - true if you want Overscroll enabledvoid setRefreshing()
void setRefreshing(boolean doScroll)
doScroll - - true if you want to force a scroll to the Refreshing
view.void setScrollAnimationInterpolator(android.view.animation.Interpolator interpolator)
interpolator - - Interpolator to usevoid setScrollingWhileRefreshingEnabled(boolean scrollingWhileRefreshingEnabled)
scrollingWhileRefreshingEnabled - - true if you want to enable
scrolling while refreshingvoid setShowViewWhileRefreshing(boolean showView)
showView -