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-rc01
KeyAttribute(frame: Int, target: String!)

Public functions

getAlpha

Added in 1.1.0-rc01
fun getAlpha(): Float

getCurveFit

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

getPivotX

Added in 1.1.0-rc01
fun getPivotX(): Float

getPivotY

Added in 1.1.0-rc01
fun getPivotY(): Float

getRotation

Added in 1.1.0-rc01
fun getRotation(): Float

getRotationX

Added in 1.1.0-rc01
fun getRotationX(): Float

getRotationY

Added in 1.1.0-rc01
fun getRotationY(): Float

getScaleX

Added in 1.1.0-rc01
fun getScaleX(): Float

getScaleY

Added in 1.1.0-rc01
fun getScaleY(): Float

getTarget

Added in 1.1.0-rc01
fun getTarget(): String!

getTransitionEasing

Added in 1.1.0-rc01
fun getTransitionEasing(): String!

getTransitionPathRotate

Added in 1.1.0-rc01
fun getTransitionPathRotate(): Float

getTranslationX

Added in 1.1.0-rc01
fun getTranslationX(): Float

getTranslationY

Added in 1.1.0-rc01
fun getTranslationY(): Float

getTranslationZ

Added in 1.1.0-rc01
fun getTranslationZ(): Float

getVisibility

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

setAlpha

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

setCurveFit

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

setPivotX

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

setPivotY

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

setRotation

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

setRotationX

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

setRotationY

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

setScaleX

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

setScaleY

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

setTarget

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

setTransitionEasing

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

setTransitionPathRotate

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

setTranslationX

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

setTranslationY

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

setTranslationZ

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

setVisibility

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

toString

fun toString(): String!

Protected functions

attributesToString

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

Protected properties

TYPE

Added in 1.1.0-rc01
protected val TYPEString!