shouldRefreshKeylineState

open fun shouldRefreshKeylineState(@NonNull carousel: Carousel, oldItemCount: Int): Boolean

Whether or not the strategy keylines should be refreshed based on the old item count and the carousel's current parameters. This method is called when the item count is updated, and is used to update the keyline strategy when the item count is less than the number of keylines in the normal keyline strategy.

Return

true if the keylines should be refreshed.