public interface AnimationBinding
GraphBinding
s. In
start(com.facebook.litho.animation.Resolver)
, subclasses can use the provided Resolver instance to reference concrete mount
item properties when creating the GraphBinding.Modifier and Type | Method and Description |
---|---|
void |
addListener(AnimationBindingListener animationBindingListener)
Adds a
AnimationBindingListener . |
void |
collectTransitioningProperties(ArrayList<PropertyAnimation> outList)
Collects the set of
PropertyAnimation s that this animation will animate. |
Object |
getTag()
Allows adding a tags that can also be used to store data without resorting to another data
structure.
|
boolean |
isActive() |
void |
prepareToStartLater()
Called when binding is to be started later.
|
void |
removeListener(AnimationBindingListener animationBindingListener)
Removes a previously added
AnimationBindingListener . |
void |
setTag(Object tag) |
void |
start(Resolver resolver)
Starts this animation.
|
void |
stop()
Stops this animation.
|
void prepareToStartLater()
void start(Resolver resolver)
Resolver
instance can be used to configure this
animation appropriately using mount content property current and end values.void stop()
boolean isActive()
void collectTransitioningProperties(ArrayList<PropertyAnimation> outList)
PropertyAnimation
s that this animation will animate. This is used
to make sure before/after values are recorded and accessible for the animation. Implementations
should add their animating properties to this set.
Note: This is a 'collect' call instead of a getter to allocating more sets then necessary for animations with nested animation (e.g. a sequence of animations). Yay Java.
void addListener(AnimationBindingListener animationBindingListener)
AnimationBindingListener
.void removeListener(AnimationBindingListener animationBindingListener)
AnimationBindingListener
.Object getTag()
void setTag(Object tag)