public class RecyclerEventsController extends Object
Prop
to a
Recycler component to trigger events from outside the component hierarchy.Constructor and Description |
---|
RecyclerEventsController() |
Modifier and Type | Method and Description |
---|---|
void |
clearRefreshing() |
protected 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 |
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()
protected RecyclerView getRecyclerView()