public class ContentBehaviorController extends BehaviorController<ScrollingContentBehavior> implements OnRefreshListener, OnLoadListener
behavior, mLoadListeners, mRefreshListeners, mScrollListeners, proxy| Constructor and Description |
|---|
ContentBehaviorController(ScrollingContentBehavior behavior) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLoading() |
boolean |
isRefreshing() |
void |
load()
Begin loading.
|
void |
loadComplete()
Loading complete, it will reset the loading state of footer behavior.
|
void |
loadError(java.lang.Throwable throwable)
The same as
Loader.loadComplete(), in addition it can report exceptions to the loader
listeners. |
void |
onLoad()
The loading is happening now.
|
void |
onLoadEnd(java.lang.Throwable throwable)
The end of loading.
|
void |
onLoadStart()
The start of a loading lifecycle.
|
void |
onPreScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
int current,
int initial,
int trigger,
int min,
int max,
int type) |
void |
onRefresh()
The refreshing is happening now.
|
void |
onRefreshEnd(java.lang.Throwable throwable)
The end of refreshing.
|
void |
onRefreshStart()
The start of a refreshing lifecycle.
|
void |
onReleaseToLoad()
The loading came to a critical state when user release their finger from screen,
which means a touch event or scrolling is over, it will trigger the loading to happen.
|
void |
onReleaseToRefresh()
The refreshing came to a critical state when user release their finger from screen,
which means a touch event or scrolling is over, it will trigger the refreshing to happen.
|
void |
onScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
int current,
int delta,
int initial,
int trigger,
int min,
int max,
int type) |
void |
onStartScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
int initial,
int trigger,
int min,
int max,
int type) |
void |
onStopScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
int current,
int initial,
int trigger,
int min,
int max,
int type) |
void |
refresh()
Start a refreshing.
|
void |
refreshComplete()
Refreshing complete, which will reset the header behavior's refreshing state.
|
void |
refreshError(java.lang.Throwable throwable)
The same as
Refresher.refreshComplete(), in addition it can report exceptions to the
refreshing listeners. |
addOnLoadListener, addOnRefreshListener, addOnScrollListener, copyRemainListeners, getBehavior, getProxy, hasOnLoadListeners, hasOnRefreshListeners, runOnUiThread, runWithView, setBehavior, setProxypublic ContentBehaviorController(ScrollingContentBehavior behavior)
public void onStartScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
int initial,
int trigger,
int min,
int max,
int type)
onStartScroll in interface AnimationOffsetBehavior.ScrollingListeneronStartScroll in class BehaviorController<ScrollingContentBehavior>public void onPreScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
int current,
int initial,
int trigger,
int min,
int max,
int type)
onPreScroll in interface AnimationOffsetBehavior.ScrollingListeneronPreScroll in class BehaviorController<ScrollingContentBehavior>public void onScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
int current,
int delta,
int initial,
int trigger,
int min,
int max,
int type)
onScroll in interface AnimationOffsetBehavior.ScrollingListeneronScroll in class BehaviorController<ScrollingContentBehavior>public void onStopScroll(CoordinatorLayout coordinatorLayout,
android.view.View child,
int current,
int initial,
int trigger,
int min,
int max,
int type)
onStopScroll in interface AnimationOffsetBehavior.ScrollingListeneronStopScroll in class BehaviorController<ScrollingContentBehavior>public void onLoadStart()
OnLoadListeneronLoadStart in interface OnLoadListenerpublic void onReleaseToLoad()
OnLoadListeneronReleaseToLoad in interface OnLoadListenerpublic void onLoad()
OnLoadListeneronLoad in interface OnLoadListenerpublic void onLoadEnd(java.lang.Throwable throwable)
OnLoadListeneronLoadEnd in interface OnLoadListenerthrowable - the exception that was reported by a loader.public void onRefreshStart()
OnRefreshListeneronRefreshStart in interface OnRefreshListenerpublic void onReleaseToRefresh()
OnRefreshListeneronReleaseToRefresh in interface OnRefreshListenerpublic void onRefresh()
OnRefreshListeneronRefresh in interface OnRefreshListenerpublic void onRefreshEnd(java.lang.Throwable throwable)
OnRefreshListeneronRefreshEnd in interface OnRefreshListenerthrowable - the exception that was reported by a refresher.public void refresh()
Refresherrefresh in interface Refresherrefresh in class BehaviorController<ScrollingContentBehavior>public void refreshComplete()
RefresherrefreshComplete in interface RefresherrefreshComplete in class BehaviorController<ScrollingContentBehavior>public void refreshError(java.lang.Throwable throwable)
RefresherRefresher.refreshComplete(), in addition it can report exceptions to the
refreshing listeners.refreshError in interface RefresherrefreshError in class BehaviorController<ScrollingContentBehavior>OnRefreshListener}public void load()
Loaderload in interface Loaderload in class BehaviorController<ScrollingContentBehavior>public void loadComplete()
LoaderloadComplete in interface LoaderloadComplete in class BehaviorController<ScrollingContentBehavior>public void loadError(java.lang.Throwable throwable)
LoaderLoader.loadComplete(), in addition it can report exceptions to the loader
listeners.loadError in interface LoaderloadError in class BehaviorController<ScrollingContentBehavior>OnLoadListener}public boolean isRefreshing()
public boolean isLoading()