compat/src/main/java/androidx/core/widget/EdgeEffectCompat.java
public static void onPull(@NonNull EdgeEffect edgeEffect, float deltaDistance,
            float displacement) {
        if (Build.VERSION.SDK_INT >= 21) {
            edgeEffect.onPull(deltaDistance, displacement);
        } else {
            edgeEffect.onPull(deltaDistance);
        }
    }
/**
     * 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 {@link android.view.View#invalidate()} after call this method
     * and draw the results accordingly.
     *
     * @param edgeEffect The EdgeEffect that is attached to the view that is getting pulled away
     *                   from an edge by the user.
     * @param deltaDistance 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.
     * @param displacement 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.
     *
     * @see {@link EdgeEffect#onPull(float, float)}
     */
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 call this method
and draw the results accordingly.

@param edgeEffect The EdgeEffect that is attached to the view that is getting pulled away
from an edge by the user.
@param deltaDistance 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.
@param displacement 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.


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 call this method and draw the results accordingly . @param edgeEffect The EdgeEffect that is attached to the view that is getting pulled away from an edge by the user . @param deltaDistance 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 . @param displacement 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 .
public static void onPull(@NonNull EdgeEffect edgeEffect, float deltaDistance,
            float displacement) {
        if (Build.VERSION.SDK_INT >= 21) {
            edgeEffect.onPull(deltaDistance, displacement);
        } else {
            edgeEffect.onPull(deltaDistance);
        }
    }
public static void onPull ( @ NonNull EdgeEffect edgeEffect , float deltaDistance , float displacement ) { if ( Build . VERSION . SDK_INT >= 21 ) { edgeEffect . onPull ( deltaDistance , displacement ) ; } else { edgeEffect . onPull ( deltaDistance ) ; } }
A view should call this when content is pulled away from an edge by the user.
A view should call this when content is pulled away from an edge by the user .