class MotionKeyTimeCycle : MotionKey


Summary

Constants

const Int

Public constructors

Public functions

Unit
Unit

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

MotionKey!
MotionKeyTimeCycle!
copy(src: MotionKey!)
Unit
Int
getId(name: String!)
Boolean
setValue(type: Int, value: Boolean)

Used to set boolean values

Boolean
setValue(type: Int, value: Float)

Used to set float values

Boolean
setValue(type: Int, value: Int)

Used to set integer values

Boolean
setValue(type: Int, value: String!)

Used to set String values

Inherited Constants

From androidx.constraintlayout.core.motion.key.MotionKey
const String!
ALPHA = "alpha"
const String!
CUSTOM = "CUSTOM"
const String!
ELEVATION = "elevation"
const String!
ROTATION = "rotationZ"
const String!
ROTATION_X = "rotationX"
const String!
SCALE_X = "scaleX"
const String!
SCALE_Y = "scaleY"
const String!
TRANSITION_PATH_ROTATE = "transitionPathRotate"
const String!
TRANSLATION_X = "translationX"
const String!
TRANSLATION_Y = "translationY"
const String!
VISIBILITY = "visibility"
From androidx.constraintlayout.core.motion.utils.TypedValues
const Int
const Int
const Int
const Int
const String!
S_CUSTOM = "CUSTOM"
const Int
const Int

Inherited functions

From androidx.constraintlayout.core.motion.key.MotionKey
Int

Gets the current frame position

Unit
setCustomAttribute(name: String!, type: Int, value: Boolean)
Unit
setCustomAttribute(name: String!, type: Int, value: Float)
Unit
setCustomAttribute(name: String!, type: Int, value: Int)
Unit
setCustomAttribute(name: String!, type: Int, value: String!)
Unit

sets the frame position

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

Key frame can specify the type of interpolation it wants on various attributes For each string it set it to -1, CurveFit.LINEAR or CurveFit.SPLINE

MotionKey!
From androidx.constraintlayout.core.motion.utils.TypedValues
abstract Boolean
setValue(id: Int, value: Boolean)

Used to set boolean values

abstract Boolean
setValue(id: Int, value: Float)

Used to set float values

abstract Boolean
setValue(id: Int, value: Int)

Used to set integer values

abstract Boolean
setValue(id: Int, value: String!)

Used to set String values

Constants

KEY_TYPE

Added in 1.1.0-alpha13
const val KEY_TYPE = 3: Int

Public constructors

MotionKeyTimeCycle

Added in 1.1.0-alpha13
MotionKeyTimeCycle()

Public functions

addTimeValues

Added in 1.1.0-alpha13
fun addTimeValues(splines: HashMap<String!, TimeCycleSplineSet!>!): Unit

addValues

Added in 1.1.0-alpha13
fun addValues(splines: HashMap<String!, SplineSet!>!): 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!, SplineSet!>!

splines to write values to

clone

Added in 1.1.0-alpha13
fun clone(): MotionKey!

copy

Added in 1.1.0-alpha13
fun copy(src: MotionKey!): MotionKeyTimeCycle!

getAttributeNames

Added in 1.1.0-alpha13
fun getAttributeNames(attributes: HashSet<String!>!): Unit

getId

Added in 1.1.0-alpha13
fun getId(name: String!): Int

setValue

fun setValue(type: Int, value: Boolean): Boolean

Used to set boolean values

Returns
Boolean

true if it accepted the value

setValue

fun setValue(type: Int, value: Float): Boolean

Used to set float values

Returns
Boolean

true if it accepted the value

setValue

fun setValue(type: Int, value: Int): Boolean

Used to set integer values

Returns
Boolean

true if it accepted the value

setValue

fun setValue(type: Int, value: String!): Boolean

Used to set String values

Returns
Boolean

true if it accepted the value