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)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
operator override fun equals(@Nullable other: Any?): Boolean
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
override fun getSimpleName(): String
Link copied to clipboard
fun getTypeId(): Int
Link copied to clipboard
override fun hashCode(): Int
Link copied to clipboard
override fun isEquivalentTo(other: Component?): Boolean
Link copied to clipboard
override fun makeShallowCopy(): Component
Link copied to clipboard
fun measure(p0: ComponentContext, p1: Int, p2: Int, p3: Size)
fun measure(p0: ComponentContext, p1: Int, p2: Int, p3: Size, p4: Boolean)
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
open override fun <T : Any> setDebugAttributeKey(attributeKey: AttributeKey<T>, value: T & Any)
Link copied to clipboard
override fun toString(): String