ExperimentalRecyclerCollectionComponentSpec
Experimental implementation of {@link RecyclerCollectionComponentSpec} that wraps a {@link ExperimentalRecycler} instead of {@link RecyclerSpec}
Types
Link copied to clipboard
Link copied to clipboard
class RecyclerCollectionLoadEventsHandler(componentContext: ComponentContext, recyclerEventsController: RecyclerEventsController, ignoreLoadingUpdates: Boolean) : BaseLoadEventsHandler
Properties
Functions
Link copied to clipboard
fun createInitialState(c: ComponentContext, snapHelper: StateValue<SnapHelper?>, sectionTree: StateValue<SectionTree?>, recyclerCollectionLoadEventsHandler: StateValue<ExperimentalRecyclerCollectionComponentSpec.RecyclerCollectionLoadEventsHandler?>, binder: StateValue<Binder<RecyclerView>?>, loadingState: StateValue<ExperimentalRecyclerCollectionComponentSpec.LoadingState?>, internalEventsController: StateValue<RecyclerCollectionEventsController?>, layoutInfo: StateValue<LayoutInfo?>, section: Section, recyclerConfiguration: RecyclerConfiguration, eventsController: RecyclerCollectionEventsController?, asyncPropUpdates: Boolean, asyncStateUpdates: Boolean, forceSyncStateUpdates: Boolean, ignoreLoadingUpdates: Boolean, sectionTreeTag: String?, canMeasureRecycler: Boolean, incrementalMount: Boolean, startupLogger: LithoStartupLogger?, stickyHeaderControllerFactory: StickyHeaderControllerFactory?)
Link copied to clipboard
fun onClearRefreshing(c: ComponentContext?, internalEventsController: RecyclerCollectionEventsController)
Link copied to clipboard
fun onCreateLayout(c: ComponentContext?, section: Section?, loadingComponent: Component?, emptyComponent: Component?, errorComponent: Component?, onScrollListeners: List<RecyclerView.OnScrollListener?>?, loadEventsHandler: LoadEventsHandler?, clipToPadding: Boolean, clipChildren: Boolean, nestedScrollingEnabled: Boolean, scrollBarStyle: Int, itemDecoration: RecyclerView.ItemDecoration?, itemAnimator: RecyclerView.ItemAnimator?, ignoreLoadingUpdates: Boolean, @IdRes recyclerViewId: Int, overScrollMode: Int, leftPadding: Int, rightPadding: Int, topPadding: Int, bottomPadding: Int, recyclerTouchEventHandler: EventHandler<TouchEvent?>?, horizontalFadingEdgeEnabled: Boolean, verticalFadingEdgeEnabled: Boolean, fadingEdgeLength: Int, refreshProgressBarBackgroundColor: Int?, refreshProgressBarColor: Int, touchInterceptor: LithoRecyclerView.TouchInterceptor?, itemTouchListener: RecyclerView.OnItemTouchListener?, setRootAsync: Boolean, disablePTR: Boolean, recyclerConfiguration: RecyclerConfiguration, sectionsViewLogger: SectionsRecyclerView.SectionsRecyclerViewLogger?, useTwoBindersRecycler: Boolean, enableSeparateAnimatorBinder: Boolean, hasSetSectionTreeRoot: Boolean, internalEventsController: RecyclerCollectionEventsController, layoutInfo: LayoutInfo, loadingState: ExperimentalRecyclerCollectionComponentSpec.LoadingState, binder: Binder<RecyclerView>, sectionTree: SectionTree, recyclerCollectionLoadEventsHandler: ExperimentalRecyclerCollectionComponentSpec.RecyclerCollectionLoadEventsHandler, snapHelper: SnapHelper?): Component?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun onScroll(c: ComponentContext?, position: Int, animate: Boolean, sectionTree: SectionTree, internalEventsController: RecyclerCollectionEventsController?)
Link copied to clipboard
fun updateLoadingState(loadingState: StateValue<ExperimentalRecyclerCollectionComponentSpec.LoadingState?>, currentLoadingState: ExperimentalRecyclerCollectionComponentSpec.LoadingState?)