present

abstract fun present(    carousel: Carousel<T, *>,     position: CarouselBehavior.Presenter.Position,     progressToNext: Float,     supplementalViews: List<View>,     items: (at: CarouselBehavior.Presenter.Position) -> Carousel.PresentedItem?): CarouselBehavior.Presenter.Presentation(source)

Called by Carousel to update the Presentation it should display.

Return

a presentation based on the state provided

Parameters

carousel

being updated

position

indicating the item currently in the "selected" position

progressToNext

indicates how close (percent [0-1]) the carousel is to the next position

supplementalViews

list of supplemental Views within the Carousel (based on previous calls)

items

lambda for creating/recycling PresentedItem