Android.Views.ViewGroup.OnNestedPreFling Method
React to a nested fling before the target view consumes it.

Syntax

[Android.Runtime.Register("onNestedPreFling", "(Landroid/view/View;FF)Z", "GetOnNestedPreFling_Landroid_view_View_FFHandler")]
public virtual bool OnNestedPreFling (View target, float velocityX, float velocityY)

Parameters

target
View that initiated the nested scroll
velocityX
Horizontal velocity in pixels per second
velocityY
Vertical velocity in pixels per second

Returns

Documentation for this section has not yet been entered.

Remarks

React to a nested fling before the target view consumes it.

This method siginfies that a nested scrolling child has detected a fling with the given velocity along each axis. Generally this means that a touch scroll has ended with a Android.Views.VelocityTracker in the direction of scrolling that meets or exceeds the ViewConfiguration.ScaledMinimumFlingVelocity along a scrollable axis.

If a nested scrolling parent is consuming motion as part of a IViewParent.OnNestedPreScroll(View, System.Int32, System.Int32, System.Int32), it may be appropriate for it to also consume the pre-fling to complete that same motion. By returning true from this method, the parent indicates that the child should not fling its own internal content as well.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1