public abstract class TransitionAnimationBinding extends Object implements AnimationBinding
GraphBinding
in
setupBinding(com.facebook.litho.animation.Resolver)
.Constructor and Description |
---|
TransitionAnimationBinding() |
Modifier and Type | Method and Description |
---|---|
void |
addBinding(ValueNode fromNode,
ValueNode toNode) |
void |
addBinding(ValueNode fromNode,
ValueNode toNode,
String inputName) |
void |
addListener(AnimationBindingListener bindingListener)
Adds a
AnimationBindingListener . |
boolean |
isActive() |
void |
removeListener(AnimationBindingListener animationBindingListener)
Removes a previously added
AnimationBindingListener . |
protected abstract void |
setupBinding(Resolver resolver)
Subclasses should set up their animation by creating a graph that defines how data will flow
to relevant
AnimatedPropertyNode s. |
void |
start(Resolver resolver)
Starts this animation.
|
void |
stop()
Stops this animation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectTransitioningProperties
public void start(Resolver resolver)
AnimationBinding
Resolver
instance can be used to configure this
animation appropriately using mount content property current and end values.start
in interface AnimationBinding
protected abstract void setupBinding(Resolver resolver)
AnimatedPropertyNode
s.public void stop()
AnimationBinding
stop
in interface AnimationBinding
public boolean isActive()
isActive
in interface AnimationBinding
public void addListener(AnimationBindingListener bindingListener)
AnimationBinding
AnimationBindingListener
.addListener
in interface AnimationBinding
public void removeListener(AnimationBindingListener animationBindingListener)
AnimationBinding
AnimationBindingListener
.removeListener
in interface AnimationBinding