Share via


EdgeEffect.OnAbsorb(Int32) Method

Definition

Call when the effect absorbs an impact at the given velocity.

[Android.Runtime.Register("onAbsorb", "(I)V", "GetOnAbsorb_IHandler")]
public virtual void OnAbsorb (int velocity);
[<Android.Runtime.Register("onAbsorb", "(I)V", "GetOnAbsorb_IHandler")>]
abstract member OnAbsorb : int -> unit
override this.OnAbsorb : int -> unit

Parameters

velocity
Int32

Velocity at impact in pixels per second.

Attributes

Remarks

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.

Java documentation for android.widget.EdgeEffect.onAbsorb(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to