-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.request.transition.TransitionFactory
public class ViewAnimationFactory<R> implements TransitionFactory<R>
A TransitionFactory that produces ViewTransitions.
-
-
Constructor Summary
Constructors Constructor Description ViewAnimationFactory(Animation animation)ViewAnimationFactory(int animationId)
-
Method Summary
Modifier and Type Method Description Transition<R>build(DataSource dataSource, boolean isFirstResource)Returns a new Transition for the given arguments. -
-
Constructor Detail
-
ViewAnimationFactory
ViewAnimationFactory(Animation animation)
-
ViewAnimationFactory
ViewAnimationFactory(int animationId)
-
-
Method Detail
-
build
Transition<R> build(DataSource dataSource, boolean isFirstResource)
Returns a new Transition for the given arguments. If isFromMemoryCache is
{@code true}or isFirstImage is{@code false}, returns a NoTransition and otherwise returns a new ViewTransition.- Parameters:
dataSource- The com.mobwith.imgmodule.load.DataSource the resource was loaded from.isFirstResource- True if this is the first resource to be loaded into the target.
-
-
-
-