class MotionKeyTrigger : MotionKey


Summary

Constants

const String!
CROSS = "CROSS"
const Int
const String!
NEGATIVE_CROSS = "negativeCross"
const String!
POSITIVE_CROSS = "positiveCross"
const String!
POST_LAYOUT = "postLayout"
const String!
TRIGGER_COLLISION_ID = "triggerCollisionId"
const String!
TRIGGER_COLLISION_VIEW = "triggerCollisionView"
const String!
TRIGGER_ID = "triggerID"
const String!
TRIGGER_RECEIVER = "triggerReceiver"
const String!
TRIGGER_SLACK = "triggerSlack"
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const Int
const String!
VIEW_TRANSITION_ON_CROSS = "viewTransitionOnCross"
const String!
VIEW_TRANSITION_ON_NEGATIVE_CROSS = "viewTransitionOnNegativeCross"
const String!
VIEW_TRANSITION_ON_POSITIVE_CROSS = "viewTransitionOnPositiveCross"

Public constructors

Public functions

Unit

Defines method to add a a view to splines derived form this key frame.

MotionKey!
Unit
conditionallyFire(position: Float, child: MotionWidget!)
MotionKeyTrigger!
copy(src: MotionKey!)
Unit
Int
getId(name: String!)
Boolean
setValue(type: Int, value: Boolean)

Used to set boolean values

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

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

CROSS

Added in 1.1.0
const val CROSS = "CROSS": String!

KEY_TYPE

Added in 1.1.0
const val KEY_TYPE = 5: Int

NEGATIVE_CROSS

Added in 1.1.0
const val NEGATIVE_CROSS = "negativeCross": String!

POSITIVE_CROSS

Added in 1.1.0
const val POSITIVE_CROSS = "positiveCross": String!

POST_LAYOUT

Added in 1.1.0
const val POST_LAYOUT = "postLayout": String!

TRIGGER_COLLISION_ID

Added in 1.1.0
const val TRIGGER_COLLISION_ID = "triggerCollisionId": String!

TRIGGER_COLLISION_VIEW

Added in 1.1.0
const val TRIGGER_COLLISION_VIEW = "triggerCollisionView": String!

TRIGGER_ID

Added in 1.1.0
const val TRIGGER_ID = "triggerID": String!

TRIGGER_RECEIVER

Added in 1.1.0
const val TRIGGER_RECEIVER = "triggerReceiver": String!

TRIGGER_SLACK

Added in 1.1.0
const val TRIGGER_SLACK = "triggerSlack": String!

TYPE_CROSS

Added in 1.1.0
const val TYPE_CROSS = 312: Int

TYPE_NEGATIVE_CROSS

Added in 1.1.0
const val TYPE_NEGATIVE_CROSS = 310: Int

TYPE_POSITIVE_CROSS

Added in 1.1.0
const val TYPE_POSITIVE_CROSS = 309: Int

TYPE_POST_LAYOUT

Added in 1.1.0
const val TYPE_POST_LAYOUT = 304: Int

TYPE_TRIGGER_COLLISION_ID

Added in 1.1.0
const val TYPE_TRIGGER_COLLISION_ID = 307: Int

TYPE_TRIGGER_COLLISION_VIEW

Added in 1.1.0
const val TYPE_TRIGGER_COLLISION_VIEW = 306: Int

TYPE_TRIGGER_ID

Added in 1.1.0
const val TYPE_TRIGGER_ID = 308: Int

TYPE_TRIGGER_RECEIVER

Added in 1.1.0
const val TYPE_TRIGGER_RECEIVER = 311: Int

TYPE_TRIGGER_SLACK

Added in 1.1.0
const val TYPE_TRIGGER_SLACK = 305: Int

TYPE_VIEW_TRANSITION_ON_CROSS

Added in 1.1.0
const val TYPE_VIEW_TRANSITION_ON_CROSS = 301: Int

TYPE_VIEW_TRANSITION_ON_NEGATIVE_CROSS

Added in 1.1.0
const val TYPE_VIEW_TRANSITION_ON_NEGATIVE_CROSS = 303: Int

TYPE_VIEW_TRANSITION_ON_POSITIVE_CROSS

Added in 1.1.0
const val TYPE_VIEW_TRANSITION_ON_POSITIVE_CROSS = 302: Int

VIEW_TRANSITION_ON_CROSS

Added in 1.1.0
const val VIEW_TRANSITION_ON_CROSS = "viewTransitionOnCross": String!

VIEW_TRANSITION_ON_NEGATIVE_CROSS

Added in 1.1.0
const val VIEW_TRANSITION_ON_NEGATIVE_CROSS = "viewTransitionOnNegativeCross": String!

VIEW_TRANSITION_ON_POSITIVE_CROSS

Added in 1.1.0
const val VIEW_TRANSITION_ON_POSITIVE_CROSS = "viewTransitionOnPositiveCross": String!

Public constructors

MotionKeyTrigger

Added in 1.1.0
MotionKeyTrigger()

Public functions

addValues

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

Defines method to add a a view to splines derived form this key frame. The values are written to the spline

Parameters
splines: HashMap<String!, SplineSet!>!

splines to write values to

clone

Added in 1.1.0
fun clone(): MotionKey!

conditionallyFire

Added in 1.1.0
fun conditionallyFire(position: Float, child: MotionWidget!): Unit

copy

Added in 1.1.0
fun copy(src: MotionKey!): MotionKeyTrigger!

getAttributeNames

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

getId

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

setValue

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

Used to set boolean values

Returns
Boolean

true if it accepted the value

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