Class MotionKeyTrigger
- java.lang.Object
-
- androidx.constraintlayout.core.motion.key.MotionKey
-
- androidx.constraintlayout.core.motion.key.MotionKeyTrigger
-
- All Implemented Interfaces:
TypedValues
public class MotionKeyTrigger extends MotionKey
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface androidx.constraintlayout.core.motion.utils.TypedValues
TypedValues.AttributesType, TypedValues.Custom, TypedValues.CycleType, TypedValues.MotionScene, TypedValues.MotionType, TypedValues.OnSwipe, TypedValues.PositionType, TypedValues.TransitionType, TypedValues.TriggerType
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCROSSstatic intKEY_TYPEstatic java.lang.StringNEGATIVE_CROSSstatic java.lang.StringPOSITIVE_CROSSstatic java.lang.StringPOST_LAYOUTstatic java.lang.StringTRIGGER_COLLISION_IDstatic java.lang.StringTRIGGER_COLLISION_VIEWstatic java.lang.StringTRIGGER_IDstatic java.lang.StringTRIGGER_RECEIVERstatic java.lang.StringTRIGGER_SLACKstatic intTYPE_CROSSstatic intTYPE_NEGATIVE_CROSSstatic intTYPE_POSITIVE_CROSSstatic intTYPE_POST_LAYOUTstatic intTYPE_TRIGGER_COLLISION_IDstatic intTYPE_TRIGGER_COLLISION_VIEWstatic intTYPE_TRIGGER_IDstatic intTYPE_TRIGGER_RECEIVERstatic intTYPE_TRIGGER_SLACKstatic intTYPE_VIEW_TRANSITION_ON_CROSSstatic intTYPE_VIEW_TRANSITION_ON_NEGATIVE_CROSSstatic intTYPE_VIEW_TRANSITION_ON_POSITIVE_CROSSstatic java.lang.StringVIEW_TRANSITION_ON_CROSSstatic java.lang.StringVIEW_TRANSITION_ON_NEGATIVE_CROSSstatic java.lang.StringVIEW_TRANSITION_ON_POSITIVE_CROSS-
Fields inherited from class androidx.constraintlayout.core.motion.key.MotionKey
ALPHA, CUSTOM, ELEVATION, mCustom, mFramePosition, mType, ROTATION, ROTATION_X, SCALE_X, SCALE_Y, TRANSITION_PATH_ROTATE, TRANSLATION_X, TRANSLATION_Y, UNSET, VISIBILITY
-
Fields inherited from interface androidx.constraintlayout.core.motion.utils.TypedValues
BOOLEAN_MASK, FLOAT_MASK, INT_MASK, S_CUSTOM, STRING_MASK, TYPE_FRAME_POSITION, TYPE_TARGET
-
-
Constructor Summary
Constructors Constructor Description MotionKeyTrigger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValues(java.util.HashMap<java.lang.String,SplineSet> splines)Defines method to add a a view to splines derived form this key frame.MotionKeyclone()voidconditionallyFire(float position, MotionWidget child)MotionKeyTriggercopy(MotionKey src)voidgetAttributeNames(java.util.HashSet<java.lang.String> attributes)intgetId(java.lang.String name)booleansetValue(int type, boolean value)Used to set boolean valuesbooleansetValue(int type, float value)Used to set float valuesbooleansetValue(int type, int value)Used to set integer valuesbooleansetValue(int type, java.lang.String value)Used to set String values-
Methods inherited from class androidx.constraintlayout.core.motion.key.MotionKey
getFramePosition, setCustomAttribute, setCustomAttribute, setCustomAttribute, setCustomAttribute, setFramePosition, setInterpolation, setViewId
-
-
-
-
Field Detail
-
VIEW_TRANSITION_ON_CROSS
public static final java.lang.String VIEW_TRANSITION_ON_CROSS
- See Also:
- Constant Field Values
-
VIEW_TRANSITION_ON_POSITIVE_CROSS
public static final java.lang.String VIEW_TRANSITION_ON_POSITIVE_CROSS
- See Also:
- Constant Field Values
-
VIEW_TRANSITION_ON_NEGATIVE_CROSS
public static final java.lang.String VIEW_TRANSITION_ON_NEGATIVE_CROSS
- See Also:
- Constant Field Values
-
POST_LAYOUT
public static final java.lang.String POST_LAYOUT
- See Also:
- Constant Field Values
-
TRIGGER_SLACK
public static final java.lang.String TRIGGER_SLACK
- See Also:
- Constant Field Values
-
TRIGGER_COLLISION_VIEW
public static final java.lang.String TRIGGER_COLLISION_VIEW
- See Also:
- Constant Field Values
-
TRIGGER_COLLISION_ID
public static final java.lang.String TRIGGER_COLLISION_ID
- See Also:
- Constant Field Values
-
TRIGGER_ID
public static final java.lang.String TRIGGER_ID
- See Also:
- Constant Field Values
-
POSITIVE_CROSS
public static final java.lang.String POSITIVE_CROSS
- See Also:
- Constant Field Values
-
NEGATIVE_CROSS
public static final java.lang.String NEGATIVE_CROSS
- See Also:
- Constant Field Values
-
TRIGGER_RECEIVER
public static final java.lang.String TRIGGER_RECEIVER
- See Also:
- Constant Field Values
-
CROSS
public static final java.lang.String CROSS
- See Also:
- Constant Field Values
-
TYPE_VIEW_TRANSITION_ON_CROSS
public static final int TYPE_VIEW_TRANSITION_ON_CROSS
- See Also:
- Constant Field Values
-
TYPE_VIEW_TRANSITION_ON_POSITIVE_CROSS
public static final int TYPE_VIEW_TRANSITION_ON_POSITIVE_CROSS
- See Also:
- Constant Field Values
-
TYPE_VIEW_TRANSITION_ON_NEGATIVE_CROSS
public static final int TYPE_VIEW_TRANSITION_ON_NEGATIVE_CROSS
- See Also:
- Constant Field Values
-
TYPE_POST_LAYOUT
public static final int TYPE_POST_LAYOUT
- See Also:
- Constant Field Values
-
TYPE_TRIGGER_SLACK
public static final int TYPE_TRIGGER_SLACK
- See Also:
- Constant Field Values
-
TYPE_TRIGGER_COLLISION_VIEW
public static final int TYPE_TRIGGER_COLLISION_VIEW
- See Also:
- Constant Field Values
-
TYPE_TRIGGER_COLLISION_ID
public static final int TYPE_TRIGGER_COLLISION_ID
- See Also:
- Constant Field Values
-
TYPE_TRIGGER_ID
public static final int TYPE_TRIGGER_ID
- See Also:
- Constant Field Values
-
TYPE_POSITIVE_CROSS
public static final int TYPE_POSITIVE_CROSS
- See Also:
- Constant Field Values
-
TYPE_NEGATIVE_CROSS
public static final int TYPE_NEGATIVE_CROSS
- See Also:
- Constant Field Values
-
TYPE_TRIGGER_RECEIVER
public static final int TYPE_TRIGGER_RECEIVER
- See Also:
- Constant Field Values
-
TYPE_CROSS
public static final int TYPE_CROSS
- See Also:
- Constant Field Values
-
KEY_TYPE
public static final int KEY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAttributeNames
public void getAttributeNames(java.util.HashSet<java.lang.String> attributes)
- Specified by:
getAttributeNamesin classMotionKey
-
addValues
public void addValues(java.util.HashMap<java.lang.String,SplineSet> splines)
Description copied from class:MotionKeyDefines method to add a a view to splines derived form this key frame. The values are written to the spline
-
getId
public int getId(java.lang.String name)
-
copy
public MotionKeyTrigger copy(MotionKey src)
-
conditionallyFire
public void conditionallyFire(float position, MotionWidget child)
-
setValue
public boolean setValue(int type, int value)Description copied from interface:TypedValuesUsed to set integer values- Specified by:
setValuein interfaceTypedValues- Overrides:
setValuein classMotionKey- Returns:
- true if it accepted the value
-
setValue
public boolean setValue(int type, float value)Description copied from interface:TypedValuesUsed to set float values- Specified by:
setValuein interfaceTypedValues- Overrides:
setValuein classMotionKey- Returns:
- true if it accepted the value
-
setValue
public boolean setValue(int type, java.lang.String value)Description copied from interface:TypedValuesUsed to set String values- Specified by:
setValuein interfaceTypedValues- Overrides:
setValuein classMotionKey- Returns:
- true if it accepted the value
-
setValue
public boolean setValue(int type, boolean value)Description copied from interface:TypedValuesUsed to set boolean values- Specified by:
setValuein interfaceTypedValues- Overrides:
setValuein classMotionKey- Returns:
- true if it accepted the value
-
-