class KeyPosition : Keys


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

Summary

Nested types

Public constructors

KeyPosition(firstTarget: String!, frame: Int)

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

KeyPosition

Added in 1.1.0
KeyPosition(firstTarget: String!, frame: Int)

Public functions

getFrames

Added in 1.1.0
fun getFrames(): Int

getPercentHeight

Added in 1.1.0
fun getPercentHeight(): Float

getPercentWidth

Added in 1.1.0
fun getPercentWidth(): Float

getPercentX

Added in 1.1.0
fun getPercentX(): Float

getPercentY

Added in 1.1.0
fun getPercentY(): Float

getPositionType

Added in 1.1.0
fun getPositionType(): KeyPosition.Type!

getTarget

Added in 1.1.0
fun getTarget(): String!

getTransitionEasing

Added in 1.1.0
fun getTransitionEasing(): String!

setFrames

Added in 1.1.0
fun setFrames(frames: Int): Unit

setPercentHeight

Added in 1.1.0
fun setPercentHeight(percentHeight: Float): Unit

setPercentWidth

Added in 1.1.0
fun setPercentWidth(percentWidth: Float): Unit

setPercentX

Added in 1.1.0
fun setPercentX(percentX: Float): Unit

setPercentY

Added in 1.1.0
fun setPercentY(percentY: Float): Unit

setPositionType

Added in 1.1.0
fun setPositionType(positionType: KeyPosition.Type!): Unit

setTarget

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

setTransitionEasing

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

toString

fun toString(): String!