class MotionKeyPosition : MotionKey


Summary

Constants

const Float
const Int
const Int
const Int

Public constructors

Public functions

Unit
MotionKey!
MotionKey!
copy(src: MotionKey!)
Unit
Int
getId(name: String!)
Boolean
intersects(
    layoutWidth: Int,
    layoutHeight: Int,
    start: FloatRect!,
    end: FloatRect!,
    x: Float,
    y: Float
)
Unit
positionAttributes(
    view: MotionWidget!,
    start: FloatRect!,
    end: FloatRect!,
    x: Float,
    y: Float,
    attribute: Array<String!>!,
    value: FloatArray!
)
Boolean
setValue(type: Int, value: Float)

Used to set float values

Boolean
setValue(type: Int, value: Int)

Used to set integer values

Boolean
setValue(type: Int, value: String!)

Used to set String values

Inherited Constants

From androidx.constraintlayout.core.motion.key.MotionKey
const String!
ALPHA = "alpha"
const String!
CUSTOM = "CUSTOM"
const String!
ELEVATION = "elevation"
const String!
ROTATION = "rotationZ"
const String!
ROTATION_X = "rotationX"
const String!
SCALE_X = "scaleX"
const String!
SCALE_Y = "scaleY"
const String!
TRANSITION_PATH_ROTATE = "transitionPathRotate"
const String!
TRANSLATION_X = "translationX"
const String!
TRANSLATION_Y = "translationY"
const String!
VISIBILITY = "visibility"
From androidx.constraintlayout.core.motion.utils.TypedValues
const Int
const Int
const Int
const Int
const String!
S_CUSTOM = "CUSTOM"
const Int
const Int

Inherited functions

From androidx.constraintlayout.core.motion.key.MotionKey
Int

Gets the current frame position

Unit
setCustomAttribute(name: String!, type: Int, value: Boolean)
Unit
setCustomAttribute(name: String!, type: Int, value: Float)
Unit
setCustomAttribute(name: String!, type: Int, value: Int)
Unit
setCustomAttribute(name: String!, type: Int, value: String!)
Unit

sets the frame position

Unit
setInterpolation(interpolation: HashMap<String!, Int!>!)

Key frame can specify the type of interpolation it wants on various attributes For each string it set it to -1, CurveFit.LINEAR or CurveFit.SPLINE

Boolean
setValue(type: Int, value: Boolean)

Used to set boolean values

MotionKey!
From androidx.constraintlayout.core.motion.utils.TypedValues
abstract Boolean
setValue(id: Int, value: Boolean)

Used to set boolean values

abstract Boolean
setValue(id: Int, value: Float)

Used to set float values

abstract Boolean
setValue(id: Int, value: Int)

Used to set integer values

abstract Boolean
setValue(id: Int, value: String!)

Used to set String values

Constants

SELECTION_SLOPE

Added in 1.1.0-alpha13
protected const val SELECTION_SLOPE = 20.0f: Float

TYPE_CARTESIAN

Added in 1.1.0-alpha13
const val TYPE_CARTESIAN = 0: Int

TYPE_PATH

Added in 1.1.0-alpha13
const val TYPE_PATH = 1: Int

TYPE_SCREEN

Added in 1.1.0-alpha13
const val TYPE_SCREEN = 2: Int

Public constructors

MotionKeyPosition

Added in 1.1.0-alpha13
MotionKeyPosition()

Public functions

addValues

Added in 1.1.0-alpha13
fun addValues(splines: HashMap<String!, SplineSet!>!): Unit
Parameters
splines: HashMap<String!, SplineSet!>!

splines to write values to

clone

Added in 1.1.0-alpha13
fun clone(): MotionKey!

copy

fun copy(src: MotionKey!): MotionKey!

getAttributeNames

Added in 1.1.0-alpha13
fun getAttributeNames(attributes: HashSet<String!>!): Unit

getId

Added in 1.1.0-alpha13
fun getId(name: String!): Int

intersects

Added in 1.1.0-alpha13
fun intersects(
    layoutWidth: Int,
    layoutHeight: Int,
    start: FloatRect!,
    end: FloatRect!,
    x: Float,
    y: Float
): Boolean

positionAttributes

Added in 1.1.0-alpha13
fun positionAttributes(
    view: MotionWidget!,
    start: FloatRect!,
    end: FloatRect!,
    x: Float,
    y: Float,
    attribute: Array<String!>!,
    value: FloatArray!
): Unit

setValue

fun setValue(type: Int, value: Float): Boolean

Used to set float values

Returns
Boolean

true if it accepted the value

setValue

fun setValue(type: Int, value: Int): Boolean

Used to set integer values

Returns
Boolean

true if it accepted the value

setValue

fun setValue(type: Int, value: String!): Boolean

Used to set String values

Returns
Boolean

true if it accepted the value

Public properties

mAltPercentX

Added in 1.1.0-alpha13
val mAltPercentXFloat

mAltPercentY

Added in 1.1.0-alpha13
val mAltPercentYFloat

mCurveFit

Added in 1.1.0-alpha13
val mCurveFitInt

mDrawPath

Added in 1.1.0-alpha13
val mDrawPathInt

mPathMotionArc

Added in 1.1.0-alpha13
val mPathMotionArcInt

mPercentHeight

Added in 1.1.0-alpha13
val mPercentHeightFloat

mPercentWidth

Added in 1.1.0-alpha13
val mPercentWidthFloat

mPercentX

Added in 1.1.0-alpha13
val mPercentXFloat

mPercentY

Added in 1.1.0-alpha13
val mPercentYFloat

mPositionType

Added in 1.1.0-alpha13
val mPositionTypeInt

mTransitionEasing

Added in 1.1.0-alpha13
val mTransitionEasingString!