public static class VolleyUrlLoader.Factory extends Object implements ModelLoaderFactory<GlideUrl,InputStream>
VolleyUrlLoader
s.Constructor and Description |
---|
Factory(Context context)
Constructor for a new Factory that runs requests using a static singleton request queue.
|
Factory(com.android.volley.RequestQueue requestQueue)
Constructor for a new Factory that runs requests using the given
RequestQueue . |
Factory(com.android.volley.RequestQueue requestQueue,
VolleyRequestFactory requestFactory)
Constructor for a new Factory with a custom Volley request factory that runs requests using
the given
RequestQueue . |
Modifier and Type | Method and Description |
---|---|
ModelLoader<GlideUrl,InputStream> |
build(MultiModelLoaderFactory factory)
Build a concrete ModelLoader for this model type.
|
void |
teardown()
A lifecycle method that will be called when this factory is about to replaced.
|
public Factory(Context context)
public Factory(com.android.volley.RequestQueue requestQueue)
RequestQueue
.public Factory(com.android.volley.RequestQueue requestQueue, VolleyRequestFactory requestFactory)
RequestQueue
.public ModelLoader<GlideUrl,InputStream> build(MultiModelLoaderFactory factory)
ModelLoaderFactory
build
in interface ModelLoaderFactory<GlideUrl,InputStream>
factory
- A map of classes to factories that can be used to construct additional
ModelLoader
s that this factory's ModelLoader
may depend onModelLoader
public void teardown()
ModelLoaderFactory
teardown
in interface ModelLoaderFactory<GlideUrl,InputStream>