class KeyAttribute : Keys

Known direct subclasses

Provides the API for creating a KeyAttribute Object for use in the Core ConstraintLayout &MotionLayout system

Summary

Nested types

Public constructors

KeyAttribute(frame: Int, target: String!)

Protected functions

Unit

Protected properties

String!

Inherited functions

From androidx.constraintlayout.core.dsl.Keys
Unit
append(builder: StringBuilder!, name: String!, array: Array<String!>!)
Unit
append(builder: StringBuilder!, name: String!, array: FloatArray!)
Unit
append(builder: StringBuilder!, name: String!, value: Float)
Unit
append(builder: StringBuilder!, name: String!, value: Int)
Unit
append(builder: StringBuilder!, name: String!, value: String!)
String!
unpack(str: Array<String!>!)

Public constructors

KeyAttribute

Added in 1.1.0
KeyAttribute(frame: Int, target: String!)

Public functions

getAlpha

Added in 1.1.0
fun getAlpha(): Float

getCurveFit

Added in 1.1.0
fun getCurveFit(): KeyAttribute.Fit!

getPivotX

Added in 1.1.0
fun getPivotX(): Float

getPivotY

Added in 1.1.0
fun getPivotY(): Float

getRotation

Added in 1.1.0
fun getRotation(): Float

getRotationX

Added in 1.1.0
fun getRotationX(): Float

getRotationY

Added in 1.1.0
fun getRotationY(): Float

getScaleX

Added in 1.1.0
fun getScaleX(): Float

getScaleY

Added in 1.1.0
fun getScaleY(): Float

getTarget

Added in 1.1.0
fun getTarget(): String!

getTransitionEasing

Added in 1.1.0
fun getTransitionEasing(): String!

getTransitionPathRotate

Added in 1.1.0
fun getTransitionPathRotate(): Float

getTranslationX

Added in 1.1.0
fun getTranslationX(): Float

getTranslationY

Added in 1.1.0
fun getTranslationY(): Float

getTranslationZ

Added in 1.1.0
fun getTranslationZ(): Float

getVisibility

Added in 1.1.0
fun getVisibility(): KeyAttribute.Visibility!

setAlpha

Added in 1.1.0
fun setAlpha(alpha: Float): Unit

setCurveFit

Added in 1.1.0
fun setCurveFit(curveFit: KeyAttribute.Fit!): Unit

setPivotX

Added in 1.1.0
fun setPivotX(pivotX: Float): Unit

setPivotY

Added in 1.1.0
fun setPivotY(pivotY: Float): Unit

setRotation

Added in 1.1.0
fun setRotation(rotation: Float): Unit

setRotationX

Added in 1.1.0
fun setRotationX(rotationX: Float): Unit

setRotationY

Added in 1.1.0
fun setRotationY(rotationY: Float): Unit

setScaleX

Added in 1.1.0
fun setScaleX(scaleX: Float): Unit

setScaleY

Added in 1.1.0
fun setScaleY(scaleY: Float): Unit

setTarget

Added in 1.1.0
fun setTarget(target: String!): Unit

setTransitionEasing

Added in 1.1.0
fun setTransitionEasing(transitionEasing: String!): Unit

setTransitionPathRotate

Added in 1.1.0
fun setTransitionPathRotate(transitionPathRotate: Float): Unit

setTranslationX

Added in 1.1.0
fun setTranslationX(translationX: Float): Unit

setTranslationY

Added in 1.1.0
fun setTranslationY(translationY: Float): Unit

setTranslationZ

Added in 1.1.0
fun setTranslationZ(translationZ: Float): Unit

setVisibility

Added in 1.1.0
fun setVisibility(visibility: KeyAttribute.Visibility!): Unit

toString

fun toString(): String!

Protected functions

attributesToString

Added in 1.1.0
protected fun attributesToString(builder: StringBuilder!): Unit

Protected properties

TYPE

Added in 1.1.0
protected val TYPEString!