public final class AnimationManager extends Object
Modifier and Type | Method and Description |
---|---|
void |
addAnimation(ComponentAnimation an)
Adds the animation to the end to the animation queue
|
void |
addAnimation(ComponentAnimation an,
Runnable callback)
Adds the animation to the end to the animation queue
|
void |
addAnimationAndBlock(ComponentAnimation an)
Adds the animation to the end of the animation queue and blocks the current thread until the animation
completes
|
void |
addUIMutation(Container container,
ComponentAnimation an)
Adds a UIMutation to the animation manager.
|
void |
addUIMutation(Container container,
ComponentAnimation an,
Runnable callback)
Adds a UIMutation to the animation manager.
|
void |
flushAnimation(Runnable r)
Invokes the runnable when all animations have completed
|
boolean |
isAnimating()
Returns true if an animation is currently in progress
|
void |
onTitleScrollAnimation(ComponentAnimation... cna)
Performs a step animation as the user scrolls down/up the page e.g.
|
void |
onTitleScrollAnimation(Container content,
ComponentAnimation... cna)
Performs a step animation as the user scrolls down/up the page e.g.
|
public boolean isAnimating()
public void addUIMutation(Container container, ComponentAnimation an)
container
- The container that is being mutated.an
- The animationComponentAnimation.UIMutation
public void addAnimation(ComponentAnimation an)
an
- the animation objectpublic void addAnimationAndBlock(ComponentAnimation an)
an
- the animation to performpublic void addAnimation(ComponentAnimation an, Runnable callback)
an
- the animation objectcallback
- invoked when the animation completespublic void addUIMutation(Container container, ComponentAnimation an, Runnable callback)
container
- The container that is being mutated.an
- The animationcallback
- A callback to be run on completion.ComponentAnimation.UIMutation
public void onTitleScrollAnimation(ComponentAnimation... cna)
cna
- the animation to bind to the scroll eventpublic void onTitleScrollAnimation(Container content, ComponentAnimation... cna)
content
- the scrollable container representing the bodycna
- the animation to bind to the scroll eventpublic void flushAnimation(Runnable r)
r
- the runnable that will be invoked after the animations