CollectionRecyclerComponent
class CollectionRecyclerComponent(children: List<CollectionChild>, componentRenderer: (index: Int, model: CollectionChild) -> RenderInfo, contentComparator: (previousItem: CollectionChild, nextItem: CollectionChild) -> Boolean, idComparator: (previousItem: CollectionChild, nextItem: CollectionChild) -> Boolean, recyclerConfiguration: RecyclerConfiguration, clipChildren: Boolean = true, clipToPadding: Boolean = true, bottomPadding: Int = 0, endPadding: Int = 0, fadingEdgeLength: Int = 0, horizontalFadingEdgeEnabled: Boolean = false, isBottomFadingEnabled: Boolean = true, isLeftFadingEnabled: Boolean = true, isRightFadingEnabled: Boolean = true, isTopFadingEnabled: Boolean = true, itemAnimator: RecyclerView.ItemAnimator? = null, itemDecoration: RecyclerView.ItemDecoration? = null, itemTouchListener: RecyclerView.OnItemTouchListener? = null, lazyCollectionController: LazyCollectionController? = null, nestedScrollingEnabled: Boolean = true, onAfterLayoutListener: LithoRecyclerView.OnAfterLayoutListener? = null, onBeforeLayoutListener: LithoRecyclerView.OnBeforeLayoutListener? = null, onDataBound: OnDataBound? = null, onDataRendered: OnDataRendered? = null, onPullToRefresh: () -> Unit? = null, onScrollListeners: List<RecyclerView.OnScrollListener?>? = null, onViewportChanged: OnViewportChanged? = null, overScrollMode: Int = View.OVER_SCROLL_ALWAYS, pullToRefreshEnabled: Boolean = false, recyclerViewId: Int = View.NO_ID, refreshProgressBarBackgroundColor: Int? = null, refreshProgressBarColor: Int = Color.BLACK, scrollBarStyle: Int = View.SCROLLBARS_INSIDE_OVERLAY, sectionsViewLogger: SectionsRecyclerView.SectionsRecyclerViewLogger? = null, shouldExcludeFromIncrementalMount: Boolean = false, startPadding: Int = 0, startupLogger: LithoStartupLogger? = null, style: Style? = null, topPadding: Int = 0, touchInterceptor: LithoRecyclerView.TouchInterceptor? = null, verticalFadingEdgeEnabled: Boolean = false) : PrimitiveComponent
A component that renders a list of items using a RecyclerBinder.
Constructors
Link copied to clipboard
constructor(children: List<CollectionChild>, componentRenderer: (index: Int, model: CollectionChild) -> RenderInfo, contentComparator: (previousItem: CollectionChild, nextItem: CollectionChild) -> Boolean, idComparator: (previousItem: CollectionChild, nextItem: CollectionChild) -> Boolean, recyclerConfiguration: RecyclerConfiguration, clipChildren: Boolean = true, clipToPadding: Boolean = true, bottomPadding: Int = 0, endPadding: Int = 0, fadingEdgeLength: Int = 0, horizontalFadingEdgeEnabled: Boolean = false, isBottomFadingEnabled: Boolean = true, isLeftFadingEnabled: Boolean = true, isRightFadingEnabled: Boolean = true, isTopFadingEnabled: Boolean = true, itemAnimator: RecyclerView.ItemAnimator? = null, itemDecoration: RecyclerView.ItemDecoration? = null, itemTouchListener: RecyclerView.OnItemTouchListener? = null, lazyCollectionController: LazyCollectionController? = null, nestedScrollingEnabled: Boolean = true, onAfterLayoutListener: LithoRecyclerView.OnAfterLayoutListener? = null, onBeforeLayoutListener: LithoRecyclerView.OnBeforeLayoutListener? = null, onDataBound: OnDataBound? = null, onDataRendered: OnDataRendered? = null, onPullToRefresh: () -> Unit? = null, onScrollListeners: List<RecyclerView.OnScrollListener?>? = null, onViewportChanged: OnViewportChanged? = null, overScrollMode: Int = View.OVER_SCROLL_ALWAYS, pullToRefreshEnabled: Boolean = false, recyclerViewId: Int = View.NO_ID, refreshProgressBarBackgroundColor: Int? = null, refreshProgressBarColor: Int = Color.BLACK, scrollBarStyle: Int = View.SCROLLBARS_INSIDE_OVERLAY, sectionsViewLogger: SectionsRecyclerView.SectionsRecyclerViewLogger? = null, shouldExcludeFromIncrementalMount: Boolean = false, startPadding: Int = 0, startupLogger: LithoStartupLogger? = null, style: Style? = null, topPadding: Int = 0, touchInterceptor: LithoRecyclerView.TouchInterceptor? = null, verticalFadingEdgeEnabled: Boolean = false)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun resolveDeferred(calculationContext: CalculationContext, componentContext: ComponentContext, parentContext: ComponentContext): ComponentResolveResult
Link copied to clipboard
Link copied to clipboard