Function

LazyLayoutScrollScope

An implementation of [LazyLayoutScrollScope] that can be used with LazyLists.

LazyLayoutScrollScope

Common
fun LazyLayoutScrollScope(state: LazyListState, scrollScope: ScrollScope): LazyLayoutScrollScope

An implementation of LazyLayoutScrollScope that can be used with LazyLists. Please refer to the sample to learn how to use this API.

Parameters

state The LazyListState associated with the layout where this custom scroll should be performed.
scrollScope The base ScrollScope where the scroll session was created.

Returns

An implementation of LazyLayoutScrollScope that works with LazyRow and LazyColumn.

LazyLayoutScrollScope

Common
fun LazyLayoutScrollScope(
    state: LazyStaggeredGridState,
    scrollScope: ScrollScope,
): LazyLayoutScrollScope

An implementation of LazyLayoutScrollScope that can be used with LazyStaggeredGrids.

Parameters

state The LazyStaggeredGridState associated with the layout where this custom scroll should be performed.
scrollScope The base ScrollScope where the scroll session was created.

Returns

An implementation of LazyLayoutScrollScope that works with LazyHorizontalStaggeredGrid and LazyVerticalStaggeredGrid.

LazyLayoutScrollScope

Common
fun LazyLayoutScrollScope(state: LazyGridState, scrollScope: ScrollScope): LazyLayoutScrollScope

An implementation of LazyLayoutScrollScope that can be used with LazyGrids.

Parameters

state The LazyGridState associated with the layout where this custom scroll should be performed.
scrollScope The base ScrollScope where the scroll session was created.

Returns

An implementation of LazyLayoutScrollScope that works with LazyHorizontalGrid and LazyVerticalGrid.

LazyLayoutScrollScope

Common
fun LazyLayoutScrollScope(state: PagerState, scrollScope: ScrollScope): LazyLayoutScrollScope

A LazyLayoutScrollScope that allows customization of animated scroll in Pager. The scope contains information about the layout where animated scroll can be performed as well as the necessary tools to do that respecting the scroll mutation priority.

Parameters

state The PagerState associated with the layout where this animated scroll should be performed.
scrollScope The base ScrollScope where the scroll session was created.

Returns

An implementation of LazyLayoutScrollScope that works with HorizontalPager and VerticalPager.