KeyTrigger
class KeyTrigger : Key
| kotlin.Any | ||
| ↳ | androidx.constraintlayout.motion.widget.Key | |
| ↳ | androidx.constraintlayout.motion.widget.KeyTrigger |
Defines container for a key frame of for storing KeyAttributes. KeyAttributes change post layout values of a view.
Summary
Constants |
|
|---|---|
const String! |
CROSS = "CROSS" |
const Int |
KEY_TYPE = 5 |
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 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 |
addValues(splines: HashMap<String!, ViewSpline!>!)Defines method to add a a view to splines derived form this key frame. |
Key! |
clone()Clone this KeyAttributes |
Unit |
conditionallyFire(pos: Float, child: View!)This fires the keyTriggers associated with this view at that position |
Key! |
Copy the key |
Unit |
getAttributeNames(attributes: HashSet<String!>!) |
Unit |
load(context: Context!, attrs: AttributeSet!) |
Unit |
Set the value associated with this tag |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||||||||
|---|---|---|---|---|---|---|---|---|
|
Constants
TRIGGER_COLLISION_VIEW
const val TRIGGER_COLLISION_VIEW = "triggerCollisionView": String!
VIEW_TRANSITION_ON_CROSS
const val VIEW_TRANSITION_ON_CROSS = "viewTransitionOnCross": String!
VIEW_TRANSITION_ON_NEGATIVE_CROSS
const val VIEW_TRANSITION_ON_NEGATIVE_CROSS = "viewTransitionOnNegativeCross": String!
VIEW_TRANSITION_ON_POSITIVE_CROSS
const val VIEW_TRANSITION_ON_POSITIVE_CROSS = "viewTransitionOnPositiveCross": String!
Public constructors
Public functions
addValues
fun addValues(splines: HashMap<String!, ViewSpline!>!): 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!, ViewSpline!>! |
splines to write values to |
conditionallyFire
fun conditionallyFire(pos: Float, child: View!): Unit
This fires the keyTriggers associated with this view at that position