TransformingLazyColumnVisibleItemInfo

sealed interface TransformingLazyColumnVisibleItemInfo


Represents an item that is visible in the TransformingLazyColumn component.

Summary

Public properties

Any?

The content type of the item which was passed to the item() or items() function.

Int

The index of the item in the underlying data source.

Any

The key of the item which was passed to the item() or items() function.

Int

The height of the item returned during the measurement phase and before height transformation is applied.

Int

The offset of the item from the start of the visible area.

TransformingLazyColumnItemScrollProgress

The scroll progress of the item, indicating its position within the visible area.

Int

Snap segment threshold in pixels requested via TransformingLazyColumnItemScope.snapSegmentThreshold for the measured size of this item, or 0 if unset or if the modifier returned a non-positive value (in which case snapping behaviors use their own default).

Int

The height of the item after applying height transformation.

Public properties

contentType

Added in 1.5.0
val contentType: Any?

The content type of the item which was passed to the item() or items() function.

index

Added in 1.5.0
val index: Int

The index of the item in the underlying data source.

key

Added in 1.5.0
val key: Any

The key of the item which was passed to the item() or items() function.

measuredHeight

Added in 1.5.0
val measuredHeight: Int

The height of the item returned during the measurement phase and before height transformation is applied.

offset

Added in 1.5.0
val offset: Int

The offset of the item from the start of the visible area.

scrollProgress

val scrollProgress: TransformingLazyColumnItemScrollProgress

The scroll progress of the item, indicating its position within the visible area.

snapSegmentThreshold

Added in 1.8.0-alpha05
val snapSegmentThreshold: Int

Snap segment threshold in pixels requested via TransformingLazyColumnItemScope.snapSegmentThreshold for the measured size of this item, or 0 if unset or if the modifier returned a non-positive value (in which case snapping behaviors use their own default).

Returns the raw non-negative requested value without clamping to viewport bounds. Snapping behaviors may apply their own bounds; see TransformingLazyColumnDefaults.snapFlingBehavior and androidx.wear.compose.foundation.rotary.RotaryScrollableDefaults.snapBehavior for how the default snapping behaviors interpret it.

transformedHeight

Added in 1.5.0
val transformedHeight: Int

The height of the item after applying height transformation.