added in version 22.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1

EdgeEffectCompat

public final class EdgeEffectCompat
extends Object

java.lang.Object
   ↳ android.support.v4.widget.EdgeEffectCompat


Helper for accessing EdgeEffect. This class is used to access EdgeEffect on platform versions that support it. When running on older platforms it will result in no-ops. It should be used by views that wish to use the standard Android visual effects at the edges of scrolling containers.

Summary

Public constructors

EdgeEffectCompat(Context context)

This constructor was deprecated in API level 26.1.0. Use EdgeEffect constructor directly.

Public methods

boolean draw(Canvas canvas)

This method was deprecated in API level 26.1.0. Use draw(Canvas) directly.

void finish()

This method was deprecated in API level 26.1.0. Use finish() directly.

boolean isFinished()

This method was deprecated in API level 26.1.0. Use isFinished() directly.

boolean onAbsorb(int velocity)

This method was deprecated in API level 26.1.0. Use onAbsorb(int) directly.

boolean onPull(float deltaDistance)

This method was deprecated in API level 22.1.0. Use onPull(EdgeEffect, float, float).

boolean onPull(float deltaDistance, float displacement)

This method was deprecated in API level 26.1.0. Use onPull(float) directly.

static void onPull(EdgeEffect edgeEffect, float deltaDistance, float displacement)

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

boolean onRelease()

This method was deprecated in API level 26.1.0. Use onRelease() directly.

void setSize(int width, int height)

This method was deprecated in API level 26.1.0. Use setSize(int, int) directly.

Inherited methods

From class java.lang.Object

Public constructors

EdgeEffectCompat

added in version 22.1.0
EdgeEffectCompat (Context context)

This constructor was deprecated in API level 26.1.0.
Use EdgeEffect constructor directly.

Construct a new EdgeEffect themed using the given context.

Note: On platform versions that do not support EdgeEffect, all operations on the newly constructed object will be mocked/no-ops.

Parameters
context