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

com.bumptech.glide.integration.volley.VolleyGlideModule Maven / Gradle / Ivy

The newest version!
package com.bumptech.glide.integration.volley;

import android.content.Context;
import androidx.annotation.NonNull;
import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.Registry;
import com.bumptech.glide.load.model.GlideUrl;
import java.io.InputStream;

/**
 * A {@link com.bumptech.glide.module.GlideModule} implementation to replace Glide's default {@link
 * java.net.HttpURLConnection} based {@link com.bumptech.glide.load.model.ModelLoader} with a Volley
 * based {@link com.bumptech.glide.load.model.ModelLoader}.
 *
 * 

If you're using gradle, you can include this module simply by depending on the aar, the module * will be merged in by manifest merger. For other build systems or for more more information, see * {@link com.bumptech.glide.module.GlideModule}. * * @deprecated Replaced with {@link VolleyLibraryGlideModule}. */ @Deprecated @SuppressWarnings("deprecation") public class VolleyGlideModule implements com.bumptech.glide.module.GlideModule { @Override public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) { // Do nothing. } @Override public void registerComponents(Context context, Glide glide, Registry registry) { registry.replace(GlideUrl.class, InputStream.class, new VolleyUrlLoader.Factory(context)); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy