onAbsorb

open fun onAbsorb(velocity: Int)(source)

Call when the effect absorbs an impact at the given velocity. Used when a fling reaches the scroll boundary.

When using a android.widget.Scroller or android.widget.OverScroller, the method getCurrVelocity will provide a reasonable approximation to use here.

Parameters

velocity

Velocity at impact in pixels per second.