ScalingLazyColumnState

class ScalingLazyColumnState(val initialScrollPosition: ScalingLazyColumnState.ScrollPosition = ScrollPosition(1, 0), val autoCentering: AutoCenteringParams? = AutoCenteringParams( initialScrollPosition.index, initialScrollPosition.offsetPx, ), val anchorType: ScalingLazyListAnchorType = ScalingLazyListAnchorType.ItemCenter, val contentPadding: PaddingValues = PaddingValues(horizontal = 10.dp), val rotaryMode: ScalingLazyColumnState.RotaryMode? = RotaryMode.Scroll, val reverseLayout: Boolean = false, val verticalArrangement: Arrangement.Vertical = Arrangement.spacedBy( space = 4.dp, alignment = if (!reverseLayout) Alignment.Top else Alignment.Bottom, ), val horizontalAlignment: Alignment.Horizontal = Alignment.CenterHorizontally, val flingBehavior: FlingBehavior? = null, val userScrollEnabled: Boolean = true, val scalingParams: ScalingParams = WearScalingLazyColumnDefaults.scalingParams(), val hapticsEnabled: Boolean = true) : ScrollableState

A Config and State object wrapping up all configuration for a ScalingLazyColumn. This allows defaults such as ScalingLazyColumnDefaults.responsive.

Constructors

Link copied to clipboard
constructor(initialScrollPosition: ScalingLazyColumnState.ScrollPosition = ScrollPosition(1, 0), autoCentering: AutoCenteringParams? = AutoCenteringParams( initialScrollPosition.index, initialScrollPosition.offsetPx, ), anchorType: ScalingLazyListAnchorType = ScalingLazyListAnchorType.ItemCenter, contentPadding: PaddingValues = PaddingValues(horizontal = 10.dp), rotaryMode: ScalingLazyColumnState.RotaryMode? = RotaryMode.Scroll, reverseLayout: Boolean = false, verticalArrangement: Arrangement.Vertical = Arrangement.spacedBy( space = 4.dp, alignment = if (!reverseLayout) Alignment.Top else Alignment.Bottom, ), horizontalAlignment: Alignment.Horizontal = Alignment.CenterHorizontally, flingBehavior: FlingBehavior? = null, userScrollEnabled: Boolean = true, scalingParams: ScalingParams = WearScalingLazyColumnDefaults.scalingParams(), hapticsEnabled: Boolean = true)

Types

Link copied to clipboard
fun interface Factory
Link copied to clipboard
sealed interface RotaryMode
Link copied to clipboard
data class ScrollPosition(val index: Int, val offsetPx: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val canScrollBackward: Boolean
Link copied to clipboard
open override val canScrollForward: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val isScrollInProgress: Boolean
Link copied to clipboard
val reverseLayout: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun dispatchRawDelta(delta: Float): Float
Link copied to clipboard
open suspend override fun scroll(scrollPriority: MutatePriority, block: suspend ScrollScope.() -> Unit)