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: <Error class: unknown class>? = null, onDataRendered: <Error class: unknown class>? = null, onNearEnd: OnNearCallback? = null, onPullToRefresh: () -> Unit? = null, onScrollListeners: List<RecyclerView.OnScrollListener?>? = null, onViewportChanged: <Error class: unknown class>? = null, overScrollMode: Int = View.OVER_SCROLL_ALWAYS, pullToRefreshEnabled: Boolean = false, recyclerViewId: Int = View.NO_ID, @ColorInt refreshProgressBarBackgroundColor: Int? = null, @ColorInt refreshProgressBarColor: Int? = null, scrollBarStyle: Int = View.SCROLLBARS_INSIDE_OVERLAY, sectionsViewLogger: SectionsRecyclerView.SectionsRecyclerViewLogger? = null, shouldExcludeFromIncrementalMount: Boolean = false, startPadding: Int = 0, startupLogger: LithoStartupLogger? = null, style: Style = Style, topPadding: Int = 0, touchInterceptor: LithoRecyclerView.TouchInterceptor? = null, verticalFadingEdgeEnabled: Boolean = false) : PrimitiveComponent
A component that renders a list of items using a RecyclerView.
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: <Error class: unknown class>? = null, onDataRendered: <Error class: unknown class>? = null, onNearEnd: OnNearCallback? = null, onPullToRefresh: () -> Unit? = null, onScrollListeners: List<RecyclerView.OnScrollListener?>? = null, onViewportChanged: <Error class: unknown class>? = null, overScrollMode: Int = View.OVER_SCROLL_ALWAYS, pullToRefreshEnabled: Boolean = false, recyclerViewId: Int = View.NO_ID, @ColorInt refreshProgressBarBackgroundColor: Int? = null, @ColorInt refreshProgressBarColor: Int? = null, scrollBarStyle: Int = View.SCROLLBARS_INSIDE_OVERLAY, sectionsViewLogger: SectionsRecyclerView.SectionsRecyclerViewLogger? = null, shouldExcludeFromIncrementalMount: Boolean = false, startPadding: Int = 0, startupLogger: LithoStartupLogger? = null, style: Style = Style, 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