Class AnimationManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the animation to the end to the animation queuevoidaddAnimation(ComponentAnimation an, Runnable callback) Adds the animation to the end to the animation queuevoidAdds the animation to the end of the animation queue and blocks the current thread until the animation completesvoidaddUIMutation(Container container, ComponentAnimation an) Adds a UIMutation to the animation manager.voidaddUIMutation(Container container, ComponentAnimation an, Runnable callback) Adds a UIMutation to the animation manager.voidInvokes the runnable when all animations have completedbooleanReturns true if an animation is currently in progressvoidPerforms a step animation as the user scrolls down/up the page e.g.voidonTitleScrollAnimation(Container content, ComponentAnimation... cna) Performs a step animation as the user scrolls down/up the page e.g.
-
Method Details
-
isAnimating
public boolean isAnimating()Returns true if an animation is currently in progress
Returns
true if an animation is currently in progress
-
addUIMutation
Adds a UIMutation to the animation manager. If there are any current compatible UIMutations in the animation queue, then this mutation will be added to that mutation. Otherwise it will appended to the end of the queue to be run sequentially.
Parameters
-
container: The container that is being mutated. -
an: The animation
Since
7.0
See also
- UIMutation
-
-
addAnimation
Adds the animation to the end to the animation queue
Parameters
an: the animation object
-
addAnimationAndBlock
Adds the animation to the end of the animation queue and blocks the current thread until the animation completes
Parameters
an: the animation to perform
-
addAnimation
Adds the animation to the end to the animation queue
Parameters
-
an: the animation object -
callback: invoked when the animation completes
-
-
addUIMutation
Adds a UIMutation to the animation manager. If there are any current compatible UIMutations in the animation queue, then this mutation will be added to that mutation. Otherwise it will appended to the end of the queue to be run sequentially.
Parameters
-
container: The container that is being mutated. -
an: The animation -
callback: A callback to be run on completion.
Since
7.0
See also
- UIMutation
-
-
onTitleScrollAnimation
Performs a step animation as the user scrolls down/up the page e.g. slowly converting a title UIID from a big visual representation to a smaller title for easier navigation then back again when scrolling up
Parameters
cna: the animation to bind to the scroll event
-
onTitleScrollAnimation
Performs a step animation as the user scrolls down/up the page e.g. slowly converting a title UIID from a big visual representation to a smaller title for easier navigation then back again when scrolling up
Parameters
-
content: the scrollable container representing the body -
cna: the animation to bind to the scroll event
-
-
flushAnimation
Invokes the runnable when all animations have completed
Parameters
r: the runnable that will be invoked after the animations
-