RubberBandingSpec

class RubberBandingSpec(resistanceFactor: Float = 2.0f)

Applies a rubber banding effect to the content while it is being dragged, up until the dismiss threshold is reached.

Parameters

resistanceFactor

Controls the strength of the rubber banding effect. A value of 1f disables the effect entirely (no resistance). Higher values increase resistance by proportionally reducing the visible drag distance.

Constructors

Link copied to clipboard
constructor(resistanceFactor: Float = 2.0f)

Types

Link copied to clipboard
object Companion