Package-level declarations

Types

Link copied to clipboard
interface PageScrollState
Link copied to clipboard
Link copied to clipboard
class RenditionScrollState(pagerState: PagerState, pageStates: List<PageScrollState>, overflow: State<Overflow>) : Scrollable2DState

Functions

Link copied to clipboard
fun pagingFlingBehavior(layoutInfo: PagingLayoutInfo, decayAnimationSpec: DecayAnimationSpec<Float> = rememberSplineBasedDecay(), snapAnimationSpec: AnimationSpec<Float> = spring( stiffness = Spring.StiffnessMediumLow, visibilityThreshold = Int.VisibilityThreshold.toFloat() ), @FloatRange(from = 0.0, to = 1.0) snapPositionalThreshold: Float = 0.5f): TargetedFlingBehavior

A snapFlingBehavior that will snap pages to the start of the layout. One can use the given parameters to control how the snapping animation will happen.

Link copied to clipboard
fun RenditionPager(modifier: Modifier = Modifier, state: PagerState, scrollState: Scrollable2DState, flingBehavior: Fling2DBehavior, orientation: Orientation, enableScroll: Boolean = true, beyondViewportPageCount: Int, key: (index: Int) -> Any? = null, pageContent: @Composable PagerScope.(Int) -> Unit)