onAbsorb

open fun onAbsorb(velocity: Int): Boolean(source)

Deprecated

Use onAbsorb directly.

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

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

Return

true if the host view should invalidate, false if it should not.

Parameters

velocity

Velocity at impact in pixels per second.