abstract class MotionKey : TypedValues


Base class in an element in a KeyFrame

Summary

Constants

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"

Public constructors

Public functions

abstract Unit

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

abstract MotionKey!
MotionKey!
copy(src: MotionKey!)
abstract Unit
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

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

MotionKey!

Public properties

java-static Int
HashMap<String!, CustomVariable!>!
Int
Int

Inherited Constants

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.utils.TypedValues
abstract Int
getId(name: String!)

Constants

ALPHA

Added in 1.1.0-alpha13
const val ALPHA = "alpha": String!

CUSTOM

Added in 1.1.0-alpha13
const val CUSTOM = "CUSTOM": String!

ELEVATION

Added in 1.1.0-alpha13
const val ELEVATION = "elevation": String!

ROTATION

Added in 1.1.0-alpha13
const val ROTATION = "rotationZ": String!

ROTATION_X

Added in 1.1.0-alpha13
const val ROTATION_X = "rotationX": String!

SCALE_X

Added in 1.1.0-alpha13
const val SCALE_X = "scaleX": String!

SCALE_Y

Added in 1.1.0-alpha13
const val SCALE_Y = "scaleY": String!

TRANSITION_PATH_ROTATE

Added in 1.1.0-alpha13
const val TRANSITION_PATH_ROTATE = "transitionPathRotate": String!

TRANSLATION_X

Added in 1.1.0-alpha13
const val TRANSLATION_X = "translationX": String!

TRANSLATION_Y

Added in 1.1.0-alpha13
const val TRANSLATION_Y = "translationY": String!

VISIBILITY

Added in 1.1.0-alpha13
const val VISIBILITY = "visibility": String!

Public constructors

MotionKey

Added in 1.1.0-alpha13
MotionKey()

Public functions

addValues

Added in 1.1.0-alpha13
abstract 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
abstract fun clone(): MotionKey!

copy

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

getAttributeNames

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

getFramePosition

Added in 1.1.0-alpha13
fun getFramePosition(): Int

Gets the current frame position

setCustomAttribute

Added in 1.1.0-alpha13
fun setCustomAttribute(name: String!, type: Int, value: Boolean): Unit

setCustomAttribute

Added in 1.1.0-alpha13
fun setCustomAttribute(name: String!, type: Int, value: Float): Unit

setCustomAttribute

Added in 1.1.0-alpha13
fun setCustomAttribute(name: String!, type: Int, value: Int): Unit

setCustomAttribute

Added in 1.1.0-alpha13
fun setCustomAttribute(name: String!, type: Int, value: String!): Unit

setFramePosition

Added in 1.1.0-alpha13
fun setFramePosition(pos: Int): Unit

sets the frame position

setInterpolation

Added in 1.1.0-alpha13
fun setInterpolation(interpolation: HashMap<String!, Int!>!): Unit

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

setValue

Added in 1.1.0-alpha13
fun setValue(type: Int, value: Boolean): Boolean

Used to set boolean values

Returns
Boolean

true if it accepted the value

setValue

Added in 1.1.0-alpha13
fun setValue(type: Int, value: Float): Boolean

Used to set float values

Returns
Boolean

true if it accepted the value

setValue

Added in 1.1.0-alpha13
fun setValue(type: Int, value: Int): Boolean

Used to set integer values

Returns
Boolean

true if it accepted the value

setValue

Added in 1.1.0-alpha13
fun setValue(type: Int, value: String!): Boolean

Used to set String values

Returns
Boolean

true if it accepted the value

setViewId

Added in 1.1.0-alpha13
fun setViewId(id: Int): MotionKey!

Public properties

UNSET

Added in 1.1.0-alpha13
java-static val UNSETInt

mCustom

Added in 1.1.0-alpha13
val mCustomHashMap<String!, CustomVariable!>!

mFramePosition

Added in 1.1.0-alpha13
val mFramePositionInt

mType

Added in 1.1.0-alpha13
val mTypeInt