Package-level declarations

Types

Link copied to clipboard
@Immutable
class SpatialFlingParams(val friction: Float = 0.04f, val flingSensitivity: Float = 1.0f, val absVelocityThreshold: Float = 0.0f)

Configuration parameters for the Spatial Fling behavior.

Link copied to clipboard
@Stable
class SpatialScrollBehavior(springParams: SpatialSpringParams = SpatialSpringParams(), flingParams: SpatialFlingParams = SpatialFlingParams(), scope: CoroutineScope) : FlingBehavior, OverscrollEffect

A custom FlingBehavior and OverscrollEffect implementation that simulates a spring-like behavior when scrolling past the boundaries of the content.

Link copied to clipboard
@Immutable
class SpatialSpringParams(val naturalFreq: Float = 11.0f, val dampingRatio: Float = 0.85f, val extIntensity: Float = 0.1f, val velocityAdjustment: Float = 1.0f)

Configuration parameters for the Spatial Spring Fling behavior.

Functions

Link copied to clipboard
@Composable
fun rememberSpatialScrollBehavior(springParams: SpatialSpringParams = SpatialSpringParams(), flingParams: SpatialFlingParams = SpatialFlingParams()): SpatialScrollBehavior

Remembers a SpatialScrollBehavior with the given parameters.