class KeyPositions : Keys


Provides the API for creating a KeyPosition Object for use in the Core ConstraintLayout &MotionLayout system This allows multiple KeyPosition positions to defined in one object.

Summary

Nested types

Public constructors

KeyPositions(numOfFrames: Int, targets: Array<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<Float>!)
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

KeyPositions

KeyPositions(numOfFrames: Int, targets: Array<String!>!)

Public functions

getFrames

Added in 1.1.2
fun getFrames(): Array<Int>!

getPercentHeight

Added in 1.1.2
fun getPercentHeight(): Array<Float>!

getPercentWidth

Added in 1.1.2
fun getPercentWidth(): Array<Float>!

getPercentX

Added in 1.1.2
fun getPercentX(): Array<Float>!

getPercentY

Added in 1.1.2
fun getPercentY(): Array<Float>!

getPositionType

Added in 1.1.2
fun getPositionType(): KeyPositions.Type!

getTarget

Added in 1.1.2
fun getTarget(): Array<String!>!

getTransitionEasing

Added in 1.1.2
fun getTransitionEasing(): String!

setFrames

fun setFrames(frames: IntArray<Int>!): Unit

setPercentHeight

fun setPercentHeight(percentHeight: FloatArray<Float>!): Unit

setPercentWidth

fun setPercentWidth(percentWidth: FloatArray<Float>!): Unit

setPercentX

fun setPercentX(percentX: FloatArray<Float>!): Unit

setPercentY

fun setPercentY(percentY: FloatArray<Float>!): Unit

setPositionType

Added in 1.1.2
fun setPositionType(positionType: KeyPositions.Type!): Unit

setTransitionEasing

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

toString

fun toString(): String!