PathInterpolatorCompat

public final class PathInterpolatorCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.animation.PathInterpolatorCompat


Helper for creating path-based Interpolator instances. On API 21 or newer, the platform implementation will be used and on older platforms a compatible alternative implementation will be used.

Summary

Public methods

static Interpolator create(Path path)

Create an Interpolator for an arbitrary Path.

static Interpolator create(float controlX1, float controlY1, float controlX2, float controlY2)

Create an Interpolator for a cubic Bezier curve.

static Interpolator create(float controlX, float controlY)

Create an Interpolator for a quadratic Bezier curve.

Inherited methods

Public methods

create

public static Interpolator create (Path path)

Create an Interpolator for an arbitrary Path. The Path must begin at