EdgeEffect.OnPull Method

Definition

Overloads

OnPull(Single)

A view should call this when content is pulled away from an edge by the user.

OnPull(Single, Single)

A view should call this when content is pulled away from an edge by the user.

OnPull(Single)

A view should call this when content is pulled away from an edge by the user.

[Android.Runtime.Register("onPull", "(F)V", "GetOnPull_FHandler")]
public virtual void OnPull (float deltaDistance);
[<Android.Runtime.Register("onPull", "(F)V", "GetOnPull_FHandler")>]
abstract member OnPull : single -> unit
override this.OnPull : single -> unit

Parameters

deltaDistance
Single

Change in distance since the last call. Values may be 0 (no change) to 1.f (full length of the view) or negative values to express change back toward the edge reached to initiate the effect.

Attributes

Remarks

A view should call this when content is pulled away from an edge by the user. This will update the state of the current visual effect and its associated animation. The host view should always android.view.View#invalidate() after this and draw the results accordingly.

Views using EdgeEffect should favor #onPull(float, float) when the displacement of the pull point is known.

Java documentation for android.widget.EdgeEffect.onPull(float).

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

OnPull(Single, Single)

A view should call this when content is pulled away from an edge by the user.

[Android.Runtime.Register("onPull", "(FF)V", "GetOnPull_FFHandler")]
public virtual void OnPull (float deltaDistance, float displacement);
[<Android.Runtime.Register("onPull", "(FF)V", "GetOnPull_FFHandler")>]
abstract member OnPull : single * single -> unit
override this.OnPull : single * single -> unit

Parameters

deltaDistance
Single

Change in distance since the last call. Values may be 0 (no change) to 1.f (full length of the view) or negative values to express change back toward the edge reached to initiate the effect.

displacement
Single

The displacement from the starting side of the effect of the point initiating the pull. In the case of touch this is the finger position. Values may be from 0-1.

Attributes

Remarks

A view should call this when content is pulled away from an edge by the user. This will update the state of the current visual effect and its associated animation. The host view should always android.view.View#invalidate() after this and draw the results accordingly.

Java documentation for android.widget.EdgeEffect.onPull(float, float).

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