KeyTimeCycle
class KeyTimeCycle : Key
| kotlin.Any | ||
| ↳ | androidx.constraintlayout.motion.widget.Key | |
| ↳ | androidx.constraintlayout.motion.widget.KeyTimeCycle |
Defines container for a key frame of for storing KeyTimeCycles. KeyTimeCycles change post layout values of a view.
Summary
Constants |
|
|---|---|
const Int |
KEY_TYPE = 3 |
const Int |
SHAPE_BOUNCE = 6 |
const Int |
SHAPE_COS_WAVE = 5 |
const Int |
|
const Int |
SHAPE_SAW_WAVE = 3 |
const Int |
SHAPE_SIN_WAVE = 0 |
const Int |
|
const Int |
|
const String! |
WAVE_OFFSET = "waveOffset" |
const String! |
WAVE_PERIOD = "wavePeriod" |
const String! |
WAVE_SHAPE = "waveShape" |
Public constructors |
|---|
Public functions |
|
|---|---|
Unit |
addTimeValues(splines: HashMap<String!, ViewTimeCycle!>!)Add values to TimeCycle Map |
Unit |
addValues(splines: HashMap<String!, ViewSpline!>!)Defines method to add a a view to splines derived form this key frame. |
Key! |
clone()Clone this KeyAttributes |
Key! |
Copy the key |
Unit |
getAttributeNames(attributes: HashSet<String!>!)Gets the curve fit type this drives the interpolation |
Unit |
load(context: Context!, attrs: AttributeSet!) |
Unit |
setInterpolation(interpolation: HashMap<String!, Int!>!)put key and position into the interpolation map |
Unit |
Set the value associated with this tag |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||||||
|---|---|---|---|---|---|---|
|
Constants
Public constructors
Public functions
addTimeValues
fun addTimeValues(splines: HashMap<String!, ViewTimeCycle!>!): Unit
Add values to TimeCycle Map
| Parameters | |
|---|---|
splines: HashMap<String!, ViewTimeCycle!>! |
addValues
fun addValues(splines: HashMap<String!, ViewSpline!>!): Unit
Defines method to add a a view to splines derived form this key frame. The values are written to the spline
| Parameters | |
|---|---|
splines: HashMap<String!, ViewSpline!>! |
splines to write values to |
getAttributeNames
fun getAttributeNames(attributes: HashSet<String!>!): Unit
Gets the curve fit type this drives the interpolation
setInterpolation
fun setInterpolation(interpolation: HashMap<String!, Int!>!): Unit
put key and position into the interpolation map