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!)
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.0
fun getFrames(): IntArray<Int>!

getPercentHeight

Added in 1.1.0
fun getPercentHeight(): FloatArray<Float>!

getPercentWidth

Added in 1.1.0
fun getPercentWidth(): FloatArray<Float>!

getPercentX

Added in 1.1.0
fun getPercentX(): FloatArray<Float>!

getPercentY

Added in 1.1.0
fun getPercentY(): FloatArray<Float>!

getPositionType

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

getTarget

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

getTransitionEasing

Added in 1.1.0
fun getTransitionEasing(): String!

setFrames

fun setFrames(frames: IntArray!): Unit

setPercentHeight

fun setPercentHeight(percentHeight: FloatArray!): Unit

setPercentWidth

fun setPercentWidth(percentWidth: FloatArray!): Unit

setPercentX

fun setPercentX(percentX: FloatArray!): Unit

setPercentY

fun setPercentY(percentY: FloatArray!): Unit

setPositionType

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

setTransitionEasing

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

toString

fun toString(): String!