ViewTimeCycle.PathRotate

public class ViewTimeCycle.PathRotate extends ViewTimeCycle


Summary

Public constructors

Public methods

boolean
setPathRotate(
    View view,
    KeyCache cache,
    float t,
    long time,
    double dx,
    double dy
)

DO NOT CALL

boolean
setProperty(View view, float t, long time, KeyCache cache)

Set the time cycle parameters

Inherited Constants

From androidx.constraintlayout.core.motion.utils.TimeCycleSplineSet
static final int
static final int
static final int

Inherited methods

From androidx.constraintlayout.core.motion.utils.TimeCycleSplineSet
float
calcWave(float period)
CurveFit
void
setPoint(int position, float value, float period, int shape, float offset)
void
setStartTime(long currentTime)
void
void
setup(int curveType)
String
From androidx.constraintlayout.motion.utils.ViewTimeCycle
float
get(float pos, long time, View view, KeyCache cache)

get a value from the time cycle

static ViewTimeCycle

make a custom time cycle

static ViewTimeCycle
makeSpline(String str, long currentTime)

Make a time cycle spline

Public constructors

PathRotate

Added in 2.2.0-alpha13
public PathRotate()

Public methods

setPathRotate

Added in 2.2.0-alpha13
public boolean setPathRotate(
    View view,
    KeyCache cache,
    float t,
    long time,
    double dx,
    double dy
)

DO NOT CALL

Parameters
View view
KeyCache cache
float t
long time
double dx
double dy
Returns
boolean

setProperty

Added in 2.2.0-alpha13
public boolean setProperty(View view, float t, long time, KeyCache cache)

Set the time cycle parameters

Parameters
View view
float t
long time
KeyCache cache
Returns
boolean