ViewTimeCycle
public abstract class ViewTimeCycle extends TimeCycleSplineSet
| java.lang.Object | ||
| ↳ | androidx.constraintlayout.core.motion.utils.TimeCycleSplineSet | |
| ↳ | androidx.constraintlayout.motion.utils.ViewTimeCycle |
This engine allows manipulation of attributes by wave shapes oscillating in time
Summary
Nested types |
|---|
public class ViewTimeCycle.CustomSet extends ViewTimeCycle |
public class ViewTimeCycle.PathRotate extends ViewTimeCycle |
Public constructors |
|---|
Public methods |
|
|---|---|
float |
get a value from the time cycle |
static ViewTimeCycle |
makeCustomSpline(String str, SparseArray<ConstraintAttribute> attrList)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 |
||||||
|---|---|---|---|---|---|---|
|
Inherited methods |
|---|
Public constructors
Public methods
get
Added in 2.2.1
public float get(float pos, long time, View view, KeyCache cache)
get a value from the time cycle
| Returns | |
|---|---|
float |
makeCustomSpline
Added in 2.2.1
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.1
public static ViewTimeCycle makeSpline(String str, long currentTime)
Make a time cycle spline
| Parameters | |
|---|---|
String str |
|
long currentTime |
| Returns | |
|---|---|
ViewTimeCycle |