class KeyTimeCycle : Key


Defines container for a key frame of for storing KeyTimeCycles. KeyTimeCycles change post layout values of a view.

Summary

Constants

const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const String!
WAVE_OFFSET = "waveOffset"
const String!
WAVE_PERIOD = "wavePeriod"
const String!
WAVE_SHAPE = "waveShape"

Public constructors

Public functions

Unit

Add values to TimeCycle Map

Unit

Defines method to add a a view to splines derived form this key frame.

Key!

Clone this KeyAttributes

Key!
copy(src: Key!)

Copy the key

Unit

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
setValue(tag: String!, value: Any!)

Set the value associated with this tag

Inherited Constants

From androidx.constraintlayout.motion.widget.Key
const String!
ALPHA = "alpha"
const String!
CURVEFIT = "curveFit"
const String!
CUSTOM = "CUSTOM"
const String!
ELEVATION = "elevation"
const String!
MOTIONPROGRESS = "motionProgress"
const String!
PIVOT_X = "transformPivotX"
const String!
PIVOT_Y = "transformPivotY"
const String!
PROGRESS = "progress"
const String!
ROTATION = "rotation"
const String!
ROTATION_X = "rotationX"
const String!
ROTATION_Y = "rotationY"
const String!
SCALE_X = "scaleX"
const String!
SCALE_Y = "scaleY"
const String!
TRANSITIONEASING = "transitionEasing"
const String!
TRANSITION_PATH_ROTATE = "transitionPathRotate"
const String!
TRANSLATION_X = "translationX"
const String!
TRANSLATION_Y = "translationY"
const String!
TRANSLATION_Z = "translationZ"
const String!
VISIBILITY = "visibility"
const String!
WAVE_OFFSET = "waveOffset"
const String!
WAVE_PERIOD = "wavePeriod"
const String!
WAVE_PHASE = "wavePhase"
const String!
WAVE_VARIES_BY = "waveVariesBy"

Inherited functions

From androidx.constraintlayout.motion.widget.Key
Int

Gets the current frame position

Unit

sets the frame position

Key!

set the id of the view

Inherited properties

From androidx.constraintlayout.motion.widget.Key
java-static Int
Int

Constants

KEY_TYPE

Added in 2.2.0
const val KEY_TYPE = 3: Int

SHAPE_BOUNCE

Added in 2.2.0
const val SHAPE_BOUNCE = 6: Int

SHAPE_COS_WAVE

Added in 2.2.0
const val SHAPE_COS_WAVE = 5: Int

SHAPE_REVERSE_SAW_WAVE

Added in 2.2.0
const val SHAPE_REVERSE_SAW_WAVE = 4: Int

SHAPE_SAW_WAVE

Added in 2.2.0
const val SHAPE_SAW_WAVE = 3: Int

SHAPE_SIN_WAVE

Added in 2.2.0
const val SHAPE_SIN_WAVE = 0: Int

SHAPE_SQUARE_WAVE

Added in 2.2.0
const val SHAPE_SQUARE_WAVE = 1: Int

SHAPE_TRIANGLE_WAVE

Added in 2.2.0
const val SHAPE_TRIANGLE_WAVE = 2: Int

WAVE_OFFSET

Added in 2.2.0
const val WAVE_OFFSET = "waveOffset": String!

WAVE_PERIOD

Added in 2.2.0
const val WAVE_PERIOD = "wavePeriod": String!

WAVE_SHAPE

Added in 2.2.0
const val WAVE_SHAPE = "waveShape": String!

Public constructors

KeyTimeCycle

Added in 2.2.0
KeyTimeCycle()

Public functions

addTimeValues

Added in 2.2.0
fun addTimeValues(splines: HashMap<String!, ViewTimeCycle!>!): Unit

Add values to TimeCycle Map

Parameters
splines: HashMap<String!, ViewTimeCycle!>!

addValues

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

clone

Added in 2.2.0
fun clone(): Key!

Clone this KeyAttributes

Returns
Key!

copy

fun copy(src: Key!): Key!

Copy the key

Parameters
src: Key!

to be copied

Returns
Key!

self

getAttributeNames

Added in 2.2.0
fun getAttributeNames(attributes: HashSet<String!>!): Unit

Gets the curve fit type this drives the interpolation

load

Added in 2.2.0
fun load(context: Context!, attrs: AttributeSet!): Unit

setInterpolation

fun setInterpolation(interpolation: HashMap<String!, Int!>!): Unit

put key and position into the interpolation map

Parameters
interpolation: HashMap<String!, Int!>!

setValue

Added in 2.2.0
fun setValue(tag: String!, value: Any!): Unit

Set the value associated with this tag

Parameters
tag: String!
value: Any!