com.bumptech.glide.request.animation
Interface GlideAnimationFactory<R>
- Type Parameters:
R
- The type of resource that needs to be animated into the target.
- All Known Implementing Classes:
- DrawableCrossFadeFactory, NoAnimation.NoAnimationFactory, ViewAnimationFactory, ViewPropertyAnimationFactory
public interface GlideAnimationFactory<R>
A factory class that can produce different GlideAnimation
s based on the
state of the request.
build
GlideAnimation<R> build(boolean isFromMemoryCache,
boolean isFirstResource)
- Returns a new
GlideAnimation
.
- Parameters:
isFromMemoryCache
- True if this will be an animation for a resource that was loaded from the memory cache.isFirstResource
- True if this is the first resource to be loaded into the target.