abstract class ViewTimeCycle : TimeCycleSplineSet


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

Summary

Public constructors

Public functions

Float
get(pos: Float, time: Long, view: View!, cache: KeyCache!)

get a value from the time cycle

java-static ViewTimeCycle!

make a custom time cycle

java-static ViewTimeCycle!
makeSpline(str: String!, currentTime: Long)

Make a time cycle spline

abstract Boolean
setProperty(view: View!, t: Float, time: Long, cache: KeyCache!)

Set the time cycle parameters

Inherited functions

From androidx.constraintlayout.core.motion.utils.TimeCycleSplineSet
Float
calcWave(period: Float)
CurveFit!
Unit
setPoint(position: Int, value: Float, period: Float, shape: Int, offset: Float)
Unit
setStartTime(currentTime: Long)
Unit
setType(type: String!)
Unit
setup(curveType: Int)
String!

Public constructors

ViewTimeCycle

Added in 2.2.0
ViewTimeCycle()

Public functions

get

Added in 2.2.0
fun get(pos: Float, time: Long, view: View!, cache: KeyCache!): Float

get a value from the time cycle

Parameters
pos: Float
time: Long
view: View!
cache: KeyCache!
Returns
Float

makeCustomSpline

Added in 2.2.0
java-static fun makeCustomSpline(str: String!, attrList: SparseArray<ConstraintAttribute!>!): ViewTimeCycle!

make a custom time cycle

Parameters
str: String!
attrList: SparseArray<ConstraintAttribute!>!
Returns
ViewTimeCycle!

makeSpline

Added in 2.2.0
java-static fun makeSpline(str: String!, currentTime: Long): ViewTimeCycle!

Make a time cycle spline

Parameters
str: String!
currentTime: Long
Returns
ViewTimeCycle!

setProperty

Added in 2.2.0
abstract fun setProperty(view: View!, t: Float, time: Long, cache: KeyCache!): Boolean

Set the time cycle parameters

Parameters
view: View!
t: Float
time: Long
cache: KeyCache!
Returns
Boolean