public static class Transition.TransitionUnitsBuilder extends Transition.BaseTransitionUnitsBuilder
appearFrom(float)
/disappearTo(float)
. Default animator is SpringTransition
but that can be customized
by providing other animator with #animator(TransitionAnimator)
.Transition.AnimationTarget, Transition.AutoBoundsTransitionBuilder, Transition.BaseTransitionUnitsBuilder, Transition.ComponentTarget, Transition.PropertyTarget, Transition.SpringTransitionAnimator, Transition.TimingTransitionAnimator, Transition.TransitionAnimator, Transition.TransitionKeyType, Transition.TransitionUnit, Transition.TransitionUnitsBuilder
SPRING_WITH_OVERSHOOT, SPRING_WITHOUT_OVERSHOOT
Modifier and Type | Method and Description |
---|---|
Transition.TransitionUnitsBuilder |
animate(AnimatedProperty... properties)
Adds a set of properties to animate.
|
Transition.TransitionUnitsBuilder |
animate(AnimatedProperty property)
Adds a given property to animate.
|
Transition.TransitionUnitsBuilder |
animate(Transition.PropertyTarget propertyTarget)
Adds a target of properties to animate.
|
Transition.TransitionUnitsBuilder |
animator(Transition.TransitionAnimator animator)
Use to define the
Transition.TransitionAnimator that drives the animation. |
Transition.TransitionUnitsBuilder |
appearFrom(float value)
Define a constant value where appear animations should start from.
|
Transition.TransitionUnitsBuilder |
appearFrom(RuntimeValue value)
Define where appear animations should start from.
|
Transition.TransitionUnitsBuilder |
disappearTo(float value)
Define a constant value where disappear animations should end at.
|
Transition.TransitionUnitsBuilder |
disappearTo(RuntimeValue value)
Define where disappear animations should end at.
|
Transition.TransitionUnitsBuilder |
traceName(String name) |
Transition.TransitionUnitsBuilder |
transitionEndHandler(EventHandler<TransitionEndEvent> transitionEndHandler)
Add a transition end handler that would get a callback whenever the transition finishes.
|
public Transition.TransitionUnitsBuilder animate(AnimatedProperty property)
animator(com.facebook.litho.Transition.TransitionAnimator)
, appearFrom(com.facebook.litho.animation.RuntimeValue)
, and disappearTo(com.facebook.litho.animation.RuntimeValue)
.property
- the property to animatepublic Transition.TransitionUnitsBuilder animate(AnimatedProperty... properties)
animator(com.facebook.litho.Transition.TransitionAnimator)
. To specify appearFrom/disappearTo
values, address properties individually using animate(AnimatedProperty)
.properties
- the properties to animatepublic Transition.TransitionUnitsBuilder animate(Transition.PropertyTarget propertyTarget)
animator(com.facebook.litho.Transition.TransitionAnimator)
. To specify appearFrom/disappearTo
values, address properties individually using animate(AnimatedProperty)
.propertyTarget
- the target properties to animatepublic Transition.TransitionUnitsBuilder animator(Transition.TransitionAnimator animator)
Transition.TransitionAnimator
that drives the animation. The default is a
spring.public Transition.TransitionUnitsBuilder transitionEndHandler(EventHandler<TransitionEndEvent> transitionEndHandler)
transitionEndHandler
- public Transition.TransitionUnitsBuilder appearFrom(RuntimeValue value)
FloatValue
,
DimensionValue
public Transition.TransitionUnitsBuilder traceName(String name)
public Transition.TransitionUnitsBuilder disappearTo(RuntimeValue value)
FloatValue
,
DimensionValue
public Transition.TransitionUnitsBuilder appearFrom(float value)
public Transition.TransitionUnitsBuilder disappearTo(float value)