ScalingLazyListLayoutInfo

interface ScalingLazyListLayoutInfo


Contains useful information about the currently displayed layout state of ScalingLazyColumn. For example you can get the list of currently displayed item.

Use ScalingLazyListState.layoutInfo to retrieve this

Summary

Public properties

Int

The auto centering padding in pixels applied after the last item in the direction of scrolling.

Int

The content padding in pixels applied after the last item in the direction of scrolling.

Int

The auto centering padding in pixels applied before the first item in the direction of scrolling.

Int

The content padding in pixels applied before the first item in the direction of scrolling.

Orientation

The orientation of the scaling lazy list.

Boolean

True if the direction of scrolling and layout is reversed.

Int

The total count of items passed to ScalingLazyColumn.

Int

The end offset of the layout's viewport in pixels.

IntSize

The size of the viewport in pixels.

Int

The start offset of the layout's viewport in pixels.

List<ScalingLazyListItemInfo>

The list of ScalingLazyListItemInfo representing all the currently visible items.

Public properties

afterAutoCenteringPadding

Added in 1.0.0
Deprecated in 1.2.0
val afterAutoCenteringPaddingInt

The auto centering padding in pixels applied after the last item in the direction of scrolling. For example it is a bottom auto centering padding for ScalingLazyColumn with reverseLayout set to false.

afterContentPadding

Added in 1.0.0
Deprecated in 1.2.0
val afterContentPaddingInt

The content padding in pixels applied after the last item in the direction of scrolling. For example it is a bottom content padding for ScalingLazyColumn with reverseLayout set to false.

beforeAutoCenteringPadding

Added in 1.0.0
Deprecated in 1.2.0
val beforeAutoCenteringPaddingInt

The auto centering padding in pixels applied before the first item in the direction of scrolling. For example it is a top auto centering padding for ScalingLazyColumn with reverseLayout set to false.

beforeContentPadding

Added in 1.0.0
Deprecated in 1.2.0
val beforeContentPaddingInt

The content padding in pixels applied before the first item in the direction of scrolling. For example it is a top content padding for ScalingLazyColumn with reverseLayout set to false.

orientation

Added in 1.0.0
Deprecated in 1.2.0
val orientationOrientation

The orientation of the scaling lazy list.

reverseLayout

Added in 1.0.0
Deprecated in 1.2.0
val reverseLayoutBoolean

True if the direction of scrolling and layout is reversed.

totalItemsCount

Added in 1.0.0
Deprecated in 1.2.0
val totalItemsCountInt

The total count of items passed to ScalingLazyColumn.

viewportEndOffset

Added in 1.0.0
Deprecated in 1.2.0
val viewportEndOffsetInt

The end offset of the layout's viewport in pixels. You can think of it as a maximum offset which would be visible. It is the size of the scaling lazy list layout minus beforeContentPadding.

You can use it to understand what items from visibleItemsInfo are fully visible.

viewportSize

Added in 1.0.0
Deprecated in 1.2.0
val viewportSizeIntSize

The size of the viewport in pixels. It is the scaling lazy list layout size including all the content paddings.

viewportStartOffset

Added in 1.0.0
Deprecated in 1.2.0
val viewportStartOffsetInt

The start offset of the layout's viewport in pixels. You can think of it as a minimum offset which would be visible. Usually it is 0, but it can be negative if non-zero beforeContentPadding was applied as the content displayed in the content padding area is still visible.

You can use it to understand what items from visibleItemsInfo are fully visible.

visibleItemsInfo

Added in 1.0.0
Deprecated in 1.2.0
val visibleItemsInfoList<ScalingLazyListItemInfo>

The list of ScalingLazyListItemInfo representing all the currently visible items.