All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bumptech.glide.request.animation.GlideAnimationFactory Maven / Gradle / Ivy

package com.bumptech.glide.request.animation;

/**
 * A factory class that can produce different {@link com.bumptech.glide.request.animation.GlideAnimation}s based on the
 * state of the request.
 * @param  The type of resource that needs to be animated into the target.
 */
public interface GlideAnimationFactory {

    /**
     * Returns a new {@link com.bumptech.glide.request.animation.GlideAnimation}.
     *
     * @param isFromMemoryCache True if this will be an animation for a resource that was loaded from the memory cache.
     * @param isFirstResource True if this is the first resource to be loaded into the target.
     */
    GlideAnimation build(boolean isFromMemoryCache, boolean isFirstResource);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy