public class RecyclerEventsController extends Object
Prop to a Recycler
component to trigger events from outside the component hierarchy.| Modifier and Type | Class and Description |
|---|---|
static interface |
RecyclerEventsController.OnRecyclerUpdateListener |
| Constructor and Description |
|---|
RecyclerEventsController() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearRefreshing() |
RecyclerView |
getRecyclerView() |
void |
requestScrollToPosition(int position,
boolean animated)
Send the Recycler a request to scroll the content to a specific item in the binder.
|
void |
requestScrollToTop(boolean animated)
Send the Recycler a request to scroll the content to the first item in the binder.
|
void |
setOnRecyclerUpdateListener(RecyclerEventsController.OnRecyclerUpdateListener onRecyclerUpdateListener) |
void |
showRefreshing() |
public void requestScrollToTop(boolean animated)
animated - if animated is set to true the scroll will happen with an animation.public void requestScrollToPosition(int position,
boolean animated)
animated - if animated is set to true the scroll will happen with an animation.public void clearRefreshing()
public void showRefreshing()
public RecyclerView getRecyclerView()
public void setOnRecyclerUpdateListener(RecyclerEventsController.OnRecyclerUpdateListener onRecyclerUpdateListener)