LazyCollectionController
A controller that can be set on a LazyCollection to trigger external events. Most calls should be made on the main thread e.g. within a Style.onClick { }
callback.
Properties
Tells if the refresh indicator is currently shown or not
Retrieve a reference to the RecyclerView. This should be avoided if possible, but may be necessary e.g. for custom animations.
A reference to the SnapHelper that is currently attached to the RecyclerView. If this LazyCollection isn't mounted or doesn't have an associated SnapHelper, returns null.
Functions
Scroll the LazyCollection by a given number of pixels. The Scroll is instant. For an animated scroll use smoothScrollBy.
Scroll the LazyCollection so that the child with the given id is fully visible. For an animated scroll use smoothScrollToId.
Scroll the LazyCollection so that the child at the given index is fully visible. For an animated scroll use smoothScrollToIndex.
Request a call back when a RecyclerView is bound or unbound.
Toggle the refresh indicator based off a boolean. It is not necessary to call this within the LazyCollection's onPullToRefresh
callback as it will be triggered automatically.
Perform and animated scroll on the LazyCollection by a given number of pixels. For an instantaneous scroll use scrollBy.
Perform an animated scroll on the LazyCollection so that the child with the given id is fully visible. For an animated scroll use smoothScrollToId.
Perform an animated scroll on the LazyCollection so that the child at the given index is fully visible. For an instantaneous scroll use scrollToIndex.