public abstract class ViewTimeCycle extends TimeCycleSplineSet


This engine allows manipulation of attributes by wave shapes oscillating in time

Summary

Nested types

Public constructors

Public methods

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

abstract 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

Public constructors

ViewTimeCycle

Added in 2.2.0
public ViewTimeCycle()

Public methods

get

Added in 2.2.0
public float get(float pos, long time, View view, KeyCache cache)

get a value from the time cycle

Parameters
float pos
long time
View view
KeyCache cache
Returns
float

makeCustomSpline

Added in 2.2.0
public static ViewTimeCycle makeCustomSpline(String str, SparseArray<ConstraintAttribute> attrList)

make a custom time cycle

Parameters
String str
SparseArray<ConstraintAttribute> attrList
Returns
ViewTimeCycle

makeSpline

Added in 2.2.0
public static ViewTimeCycle makeSpline(String str, long currentTime)

Make a time cycle spline

Parameters
String str
long currentTime
Returns
ViewTimeCycle

setProperty

Added in 2.2.0
public abstract 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