ViewTimeCycle.CustomSet


class ViewTimeCycle.CustomSet : ViewTimeCycle


Summary

Public constructors

CustomSet(attribute: String!, attrList: SparseArray<ConstraintAttribute!>!)

Public functions

Unit
setPoint(
    position: Int,
    value: ConstraintAttribute!,
    period: Float,
    shape: Int,
    offset: Float
)

set the keyTimePoint

Unit
setPoint(position: Int, value: Float, period: Float, shape: Int, offset: Float)
Boolean
setProperty(view: View!, t: Float, time: Long, cache: KeyCache!)

Set the property of the view given the position the current time

Unit
setup(curveType: Int)

Setup the curve

Inherited functions

From androidx.constraintlayout.core.motion.utils.TimeCycleSplineSet
From androidx.constraintlayout.motion.utils.ViewTimeCycle
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

Public constructors

CustomSet

Added in 2.2.0
CustomSet(attribute: String!, attrList: SparseArray<ConstraintAttribute!>!)

Public functions

setPoint

Added in 2.2.0
fun setPoint(
    position: Int,
    value: ConstraintAttribute!,
    period: Float,
    shape: Int,
    offset: Float
): Unit

set the keyTimePoint

Parameters
position: Int
value: ConstraintAttribute!
period: Float
shape: Int
offset: Float

setPoint

fun setPoint(position: Int, value: Float, period: Float, shape: Int, offset: Float): Unit
Parameters
position: Int
value: Float
period: Float
shape: Int
offset: Float

setProperty

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

Set the property of the view given the position the current time

Parameters
view: View!

the view to set the property of

t: Float

the position on the curve

time: Long

the current time

cache: KeyCache!

the cache used to keep the previous position

Returns
Boolean

true if it will need repaint

setup

fun setup(curveType: Int): Unit

Setup the curve

Parameters
curveType: Int