class KeyAttributes : Key


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

Summary

Constants

const Int

Public constructors

Public functions

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
Unit
load(context: Context!, attrs: AttributeSet!)
Unit
setInterpolation(interpolation: HashMap<String!, Int!>!)

create the interpolations associated with this KeyAttribute

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 = 1: Int

Public constructors

KeyAttributes

Added in 2.2.0
KeyAttributes()

Public functions

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

load

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

setInterpolation

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

create the interpolations associated with this KeyAttribute

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

will be added to with keyAttributes

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!